umami/src/app/(main)/settings/websites/WebsitesPage.tsx

16 lines
455 B
TypeScript
Raw Normal View History

2023-11-23 02:03:48 +00:00
'use client';
import { useLogin } from 'components/hooks';
2023-11-23 02:03:48 +00:00
import WebsitesDataTable from './WebsitesDataTable';
import WebsitesHeader from './WebsitesHeader';
2024-02-06 07:59:33 +00:00
export default function WebsitesPage({ teamId }: { teamId: string }) {
const { user } = useLogin();
2024-01-30 08:10:25 +00:00
2023-11-23 02:03:48 +00:00
return (
<>
2024-02-06 07:59:33 +00:00
<WebsitesHeader teamId={teamId} allowCreate={user.role !== 'view-only'} />
2024-02-03 01:49:17 +00:00
<WebsitesDataTable teamId={teamId} userId={user.id} allowEdit={true} />
2023-11-23 02:03:48 +00:00
</>
);
}