umami/src/app/(main)/reports/insights/InsightsReport.tsx

29 lines
872 B
TypeScript
Raw Normal View History

2023-09-29 12:29:22 +00:00
'use client';
2024-01-29 22:47:52 +00:00
import Report from '../[reportId]/Report';
import ReportHeader from '../[reportId]/ReportHeader';
import ReportMenu from '../[reportId]/ReportMenu';
import ReportBody from '../[reportId]/ReportBody';
2023-07-08 03:38:43 +00:00
import InsightsParameters from './InsightsParameters';
import InsightsTable from './InsightsTable';
import Lightbulb from 'assets/lightbulb.svg';
2023-08-11 16:05:56 +00:00
import { REPORT_TYPES } from 'lib/constants';
2023-07-08 03:38:43 +00:00
const defaultParameters = {
2023-08-11 16:05:56 +00:00
type: REPORT_TYPES.insights,
parameters: { fields: [], filters: [] },
2023-07-08 03:38:43 +00:00
};
2023-12-03 11:07:03 +00:00
export default function InsightsReport({ reportId }: { reportId: string }) {
2023-07-08 03:38:43 +00:00
return (
<Report reportId={reportId} defaultParameters={defaultParameters}>
<ReportHeader icon={<Lightbulb />} />
<ReportMenu>
<InsightsParameters />
</ReportMenu>
<ReportBody>
<InsightsTable />
</ReportBody>
</Report>
);
}