2023-05-20 18:02:08 +02:00
|
|
|
import FunnelChart from './FunnelChart';
|
|
|
|
import FunnelParameters from './FunnelParameters';
|
2024-02-06 09:38:33 +01:00
|
|
|
import Report from '../[reportId]/Report';
|
2024-01-29 23:47:52 +01:00
|
|
|
import ReportHeader from '../[reportId]/ReportHeader';
|
|
|
|
import ReportMenu from '../[reportId]/ReportMenu';
|
|
|
|
import ReportBody from '../[reportId]/ReportBody';
|
2023-05-20 18:02:08 +02:00
|
|
|
import Funnel from 'assets/funnel.svg';
|
2023-08-11 18:05:56 +02:00
|
|
|
import { REPORT_TYPES } from 'lib/constants';
|
2023-05-20 18:02:08 +02:00
|
|
|
|
2023-05-29 06:37:34 +02:00
|
|
|
const defaultParameters = {
|
2023-08-11 18:05:56 +02:00
|
|
|
type: REPORT_TYPES.funnel,
|
2024-04-03 08:30:12 +02:00
|
|
|
parameters: { window: 60, steps: [] },
|
2023-05-29 06:37:34 +02:00
|
|
|
};
|
2023-05-20 18:02:08 +02:00
|
|
|
|
2024-02-03 02:49:17 +01:00
|
|
|
export default function FunnelReport({ reportId }: { reportId?: string }) {
|
2023-05-20 18:02:08 +02:00
|
|
|
return (
|
2024-02-06 09:38:33 +01:00
|
|
|
<Report reportId={reportId} defaultParameters={defaultParameters}>
|
2023-05-29 06:37:34 +02:00
|
|
|
<ReportHeader icon={<Funnel />} />
|
2023-05-20 18:02:08 +02:00
|
|
|
<ReportMenu>
|
2023-05-29 06:37:34 +02:00
|
|
|
<FunnelParameters />
|
2023-05-20 18:02:08 +02:00
|
|
|
</ReportMenu>
|
|
|
|
<ReportBody>
|
2023-05-29 06:37:34 +02:00
|
|
|
<FunnelChart />
|
2023-05-20 18:02:08 +02:00
|
|
|
</ReportBody>
|
2024-02-06 09:38:33 +01:00
|
|
|
</Report>
|
2023-05-20 18:02:08 +02:00
|
|
|
);
|
|
|
|
}
|