mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
import { useReports } from 'components/hooks';
|
|
import ReportsTable from './ReportsTable';
|
|
import DataTable from 'components/common/DataTable';
|
|
|
|
export default function ReportsDataTable({
|
|
websiteId,
|
|
teamId,
|
|
}: {
|
|
websiteId?: string;
|
|
teamId?: string;
|
|
}) {
|
|
const queryResult = useReports({ websiteId, teamId });
|
|
|
|
return (
|
|
<DataTable queryResult={queryResult}>
|
|
{({ data }) => <ReportsTable data={data} showDomain={!websiteId} />}
|
|
</DataTable>
|
|
);
|
|
}
|