mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +01:00
27 lines
881 B
TypeScript
27 lines
881 B
TypeScript
import { Report } from '../[reportId]/Report';
|
|
import { ReportHeader } from '../[reportId]/ReportHeader';
|
|
import { ReportMenu } from '../[reportId]/ReportMenu';
|
|
import { ReportBody } from '../[reportId]/ReportBody';
|
|
import { InsightsParameters } from './InsightsParameters';
|
|
import { InsightsTable } from './InsightsTable';
|
|
import { Icons } from '@/components/icons';
|
|
import { REPORT_TYPES } from '@/lib/constants';
|
|
|
|
const defaultParameters = {
|
|
type: REPORT_TYPES.insights,
|
|
parameters: { fields: [], filters: [] },
|
|
};
|
|
|
|
export function InsightsReport({ reportId }: { reportId?: string }) {
|
|
return (
|
|
<Report reportId={reportId} defaultParameters={defaultParameters}>
|
|
<ReportHeader icon={<Icons.Lightbulb />} />
|
|
<ReportMenu>
|
|
<InsightsParameters />
|
|
</ReportMenu>
|
|
<ReportBody>
|
|
<InsightsTable />
|
|
</ReportBody>
|
|
</Report>
|
|
);
|
|
}
|