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

28 lines
875 B
TypeScript
Raw Normal View History

2024-02-06 07:59:33 +00:00
import ReportPage from '../[reportId]/ReportPage';
2024-01-29 22:47:52 +00:00
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
};
2024-02-03 01:49:17 +00:00
export default function InsightsReport({ reportId }: { reportId?: string }) {
2023-07-08 03:38:43 +00:00
return (
2024-02-06 07:59:33 +00:00
<ReportPage reportId={reportId} defaultParameters={defaultParameters}>
2023-07-08 03:38:43 +00:00
<ReportHeader icon={<Lightbulb />} />
<ReportMenu>
<InsightsParameters />
</ReportMenu>
<ReportBody>
<InsightsTable />
</ReportBody>
2024-02-06 07:59:33 +00:00
</ReportPage>
2023-07-08 03:38:43 +00:00
);
}