umami/components/pages/reports/insights/InsightsReport.js

27 lines
747 B
JavaScript
Raw Normal View History

2023-07-08 05:38:43 +02:00
import Report from '../Report';
import ReportHeader from '../ReportHeader';
import ReportMenu from '../ReportMenu';
import ReportBody from '../ReportBody';
import InsightsParameters from './InsightsParameters';
import InsightsTable from './InsightsTable';
import Lightbulb from 'assets/lightbulb.svg';
const defaultParameters = {
type: 'insights',
parameters: { fields: [], filters: [], groups: [] },
};
export default function InsightsReport({ reportId }) {
return (
<Report reportId={reportId} defaultParameters={defaultParameters}>
<ReportHeader icon={<Lightbulb />} />
<ReportMenu>
<InsightsParameters />
</ReportMenu>
<ReportBody>
<InsightsTable />
</ReportBody>
</Report>
);
}