umami/src/app/(main)/settings/websites/Websites.tsx
2024-02-02 17:49:17 -08:00

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} />
</>
);
}