mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
15 lines
435 B
TypeScript
15 lines
435 B
TypeScript
'use client';
|
|
import { useLogin } from 'components/hooks';
|
|
import WebsitesDataTable from './WebsitesDataTable';
|
|
import WebsitesHeader from './WebsitesHeader';
|
|
|
|
export default function Websites({ teamId }: { teamId: string }) {
|
|
const { user } = useLogin();
|
|
|
|
return (
|
|
<>
|
|
<WebsitesHeader showActions={user.role !== 'view-only'} />
|
|
<WebsitesDataTable teamId={teamId} userId={user.id} allowEdit={true} />
|
|
</>
|
|
);
|
|
}
|