Scaffolding for insights report.

This commit is contained in:
Mike Cao 2023-07-07 20:38:43 -07:00
parent 2f4d669836
commit 827102d907
9 changed files with 305 additions and 17 deletions

View file

@ -0,0 +1,26 @@
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>
);
}