New admin section.
This commit is contained in:
21
src/app/(main)/admin/users/UsersPage.tsx
Normal file
21
src/app/(main)/admin/users/UsersPage.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
'use client';
|
||||
import { UsersDataTable } from './UsersDataTable';
|
||||
import { Column } from '@umami/react-zen';
|
||||
import { SectionHeader } from '@/components/common/SectionHeader';
|
||||
import { useMessages } from '@/components/hooks';
|
||||
import { UserAddButton } from './UserAddButton';
|
||||
|
||||
export function UsersPage() {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
const handleSave = () => {};
|
||||
|
||||
return (
|
||||
<Column gap>
|
||||
<SectionHeader title={formatMessage(labels.users)}>
|
||||
<UserAddButton onSave={handleSave} />
|
||||
</SectionHeader>
|
||||
<UsersDataTable />
|
||||
</Column>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user