2023-07-02 07:02:49 +02:00
|
|
|
import FunnelReport from './funnel/FunnelReport';
|
|
|
|
import EventDataReport from './event-data/EventDataReport';
|
2023-08-07 07:52:17 +02:00
|
|
|
import InsightsReport from './insights/InsightsReport';
|
2023-08-04 22:10:03 +02:00
|
|
|
import RetentionReport from './retention/RetentionReport';
|
2023-07-02 07:02:49 +02:00
|
|
|
|
|
|
|
const reports = {
|
|
|
|
funnel: FunnelReport,
|
|
|
|
'event-data': EventDataReport,
|
2023-08-07 07:52:17 +02:00
|
|
|
insights: InsightsReport,
|
2023-08-04 22:10:03 +02:00
|
|
|
retention: RetentionReport,
|
2023-07-02 07:02:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default function ReportDetails({ reportId, reportType }) {
|
|
|
|
const Report = reports[reportType];
|
|
|
|
|
|
|
|
return <Report reportId={reportId} />;
|
|
|
|
}
|