mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
28 lines
828 B
TypeScript
28 lines
828 B
TypeScript
'use client';
|
|
import Link from 'next/link';
|
|
import { Button, Flexbox, Icon, Icons, Text } from 'react-basics';
|
|
import { useMessages, useNavigation } from 'components/hooks';
|
|
import ReportsDataTable from 'app/(main)/reports/ReportsDataTable';
|
|
|
|
export function TeamReports({ websiteId }) {
|
|
const { formatMessage, labels } = useMessages();
|
|
const { renderTeamUrl } = useNavigation();
|
|
|
|
return (
|
|
<>
|
|
<Flexbox alignItems="center" justifyContent="end">
|
|
<Link href={renderTeamUrl(`/reports/create`)}>
|
|
<Button variant="primary">
|
|
<Icon>
|
|
<Icons.Plus />
|
|
</Icon>
|
|
<Text>{formatMessage(labels.createReport)}</Text>
|
|
</Button>
|
|
</Link>
|
|
</Flexbox>
|
|
<ReportsDataTable websiteId={websiteId} />
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default TeamReports;
|