mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
27 lines
875 B
TypeScript
27 lines
875 B
TypeScript
import ReportPage from '../[reportId]/ReportPage';
|
|
import ReportHeader from '../[reportId]/ReportHeader';
|
|
import ReportMenu from '../[reportId]/ReportMenu';
|
|
import ReportBody from '../[reportId]/ReportBody';
|
|
import InsightsParameters from './InsightsParameters';
|
|
import InsightsTable from './InsightsTable';
|
|
import Lightbulb from 'assets/lightbulb.svg';
|
|
import { REPORT_TYPES } from 'lib/constants';
|
|
|
|
const defaultParameters = {
|
|
type: REPORT_TYPES.insights,
|
|
parameters: { fields: [], filters: [] },
|
|
};
|
|
|
|
export default function InsightsReport({ reportId }: { reportId?: string }) {
|
|
return (
|
|
<ReportPage reportId={reportId} defaultParameters={defaultParameters}>
|
|
<ReportHeader icon={<Lightbulb />} />
|
|
<ReportMenu>
|
|
<InsightsParameters />
|
|
</ReportMenu>
|
|
<ReportBody>
|
|
<InsightsTable />
|
|
</ReportBody>
|
|
</ReportPage>
|
|
);
|
|
}
|