* add new create room * rename create room modal file * default restrict access for space children in room create modal * move create room kind selector to components * add radii variant to sequence card component * more more reusable create room logic to components * add create space * update address input description * add new space modal * fix add room button visible on left room in space lobby
12 lines
274 B
TypeScript
12 lines
274 B
TypeScript
import { useMatch } from 'react-router-dom';
|
|
import { getCreatePath } from '../../pages/pathUtils';
|
|
|
|
export const useCreateSelected = (): boolean => {
|
|
const match = useMatch({
|
|
path: getCreatePath(),
|
|
caseSensitive: true,
|
|
end: false,
|
|
});
|
|
|
|
return !!match;
|
|
};
|