mirror of
https://github.com/docmost/docmost.git
synced 2026-05-16 22:41:30 +08:00
f2a193ac8d
* other fixes and cleanups
19 lines
527 B
TypeScript
19 lines
527 B
TypeScript
import { Button, Divider, Modal } from "@mantine/core";
|
|
import { useDisclosure } from "@mantine/hooks";
|
|
import { CreateSpaceForm } from "@/features/space/components/create-space-form.tsx";
|
|
|
|
export default function CreateSpaceModal() {
|
|
const [opened, { open, close }] = useDisclosure(false);
|
|
|
|
return (
|
|
<>
|
|
<Button onClick={open}>Create space</Button>
|
|
|
|
<Modal opened={opened} onClose={close} title="Create space">
|
|
<Divider size="xs" mb="xs" />
|
|
<CreateSpaceForm />
|
|
</Modal>
|
|
</>
|
|
);
|
|
}
|