umami/components/pages/reports/funnel/FunnelReport.js

30 lines
829 B
JavaScript
Raw Normal View History

2023-05-20 16:02:08 +00:00
import FunnelChart from './FunnelChart';
import FunnelTable from './FunnelTable';
import FunnelParameters from './FunnelParameters';
2023-06-03 06:10:59 +00:00
import Report from '../Report';
2023-05-20 16:02:08 +00:00
import ReportHeader from '../ReportHeader';
import ReportMenu from '../ReportMenu';
import ReportBody from '../ReportBody';
import Funnel from 'assets/funnel.svg';
2023-08-11 16:05:56 +00:00
import { REPORT_TYPES } from 'lib/constants';
2023-05-20 16:02:08 +00:00
const defaultParameters = {
2023-08-11 16:05:56 +00:00
type: REPORT_TYPES.funnel,
2023-06-03 06:10:59 +00:00
parameters: { window: 60, urls: [] },
};
2023-05-20 16:02:08 +00:00
export default function FunnelReport({ reportId }) {
2023-05-20 16:02:08 +00:00
return (
<Report reportId={reportId} defaultParameters={defaultParameters}>
<ReportHeader icon={<Funnel />} />
2023-05-20 16:02:08 +00:00
<ReportMenu>
<FunnelParameters />
2023-05-20 16:02:08 +00:00
</ReportMenu>
<ReportBody>
<FunnelChart />
<FunnelTable />
2023-05-20 16:02:08 +00:00
</ReportBody>
</Report>
);
}