Add a page and config option for a room directory server

This commit is contained in:
Ginger 2025-09-13 15:12:10 -04:00
parent e45368f099
commit 6a462d2801
No known key found for this signature in database
5 changed files with 113 additions and 37 deletions

View file

@ -1,5 +1,6 @@
import { useMatch, useParams } from 'react-router-dom';
import { getExploreFeaturedPath, getExplorePath } from '../../pages/pathUtils';
import { useClientConfig } from '../useClientConfig';
export const useExploreSelected = (): boolean => {
const match = useMatch({
@ -26,3 +27,8 @@ export const useExploreServer = (): string | undefined => {
return server;
};
export const useDirectoryServer = (): string | undefined => {
const { featuredCommunities } = useClientConfig();
return featuredCommunities?.directoryServer;
};