mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 01:07:08 +08:00
26 lines
770 B
TypeScript
26 lines
770 B
TypeScript
import GroupList from "@/features/group/components/group-list";
|
|
import SettingsTitle from "@/components/settings/settings-title.tsx";
|
|
import { Group } from "@mantine/core";
|
|
import CreateGroupModal from "@/features/group/components/create-group-modal";
|
|
import useUserRole from "@/hooks/use-user-role.tsx";
|
|
import { useTranslation } from "react-i18next";
|
|
import { DocumentTitle } from "@/components/ui/document-title.tsx";
|
|
|
|
export default function Groups() {
|
|
const { t } = useTranslation();
|
|
const { isAdmin } = useUserRole();
|
|
|
|
return (
|
|
<>
|
|
<DocumentTitle title={t("Groups")} />
|
|
<SettingsTitle title={t("Groups")} />
|
|
|
|
<Group my="md" justify="flex-end">
|
|
{isAdmin && <CreateGroupModal />}
|
|
</Group>
|
|
|
|
<GroupList />
|
|
</>
|
|
);
|
|
}
|