umami/components/pages/reports/ReportDetails.js

14 lines
338 B
JavaScript
Raw Normal View History

2023-07-02 07:02:49 +02:00
import FunnelReport from './funnel/FunnelReport';
import EventDataReport from './event-data/EventDataReport';
const reports = {
funnel: FunnelReport,
'event-data': EventDataReport,
};
export default function ReportDetails({ reportId, reportType }) {
const Report = reports[reportType];
return <Report reportId={reportId} />;
}