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

16 lines
509 B
TypeScript
Raw Normal View History

2024-02-06 07:59:33 +00:00
'use client';
import WebsitesHeader from 'app/(main)/settings/websites/WebsitesHeader';
import WebsitesDataTable from 'app/(main)/settings/websites/WebsitesDataTable';
2024-02-19 19:31:11 +00:00
import { useLogin } from 'components/hooks';
export default function WebsitesPage({ teamId }: { teamId: string; userId: string }) {
const { user } = useLogin();
2024-02-06 07:59:33 +00:00
return (
<>
2024-02-19 19:31:11 +00:00
<WebsitesHeader teamId={teamId} allowCreate={user.role !== 'view-only'} />
<WebsitesDataTable teamId={teamId} allowEdit={false} />
2024-02-06 07:59:33 +00:00
</>
);
}