mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-20 16:51:10 +00:00
25 lines
515 B
JavaScript
25 lines
515 B
JavaScript
import UsersTable from '../components/tables/UsersTable';
|
|
import { Box } from '@mantine/core';
|
|
import useAuthStore from '../store/auth';
|
|
import ErrorBoundary from '../components/ErrorBoundary';
|
|
|
|
const PageContent = () => {
|
|
const authUser = useAuthStore((s) => s.user);
|
|
if (!authUser.id) throw new Error();
|
|
|
|
return (
|
|
<Box p={10}>
|
|
<UsersTable />
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
const UsersPage = () => {
|
|
return (
|
|
<ErrorBoundary>
|
|
<PageContent />
|
|
</ErrorBoundary>
|
|
);
|
|
};
|
|
|
|
export default UsersPage;
|