mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
15 lines
455 B
TypeScript
15 lines
455 B
TypeScript
'use client';
|
|
import { useLogin } from 'components/hooks';
|
|
import WebsitesDataTable from './WebsitesDataTable';
|
|
import WebsitesHeader from './WebsitesHeader';
|
|
|
|
export default function WebsitesPage({ teamId }: { teamId: string }) {
|
|
const { user } = useLogin();
|
|
|
|
return (
|
|
<>
|
|
<WebsitesHeader teamId={teamId} allowCreate={user.role !== 'view-only'} />
|
|
<WebsitesDataTable teamId={teamId} userId={user.id} allowEdit={true} />
|
|
</>
|
|
);
|
|
}
|