mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-03 14:34:46 +01:00
27 lines
747 B
JavaScript
27 lines
747 B
JavaScript
|
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>
|
||
|
);
|
||
|
}
|