mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-08 18:37:47 +01:00
18 lines
511 B
JavaScript
18 lines
511 B
JavaScript
import FunnelReport from './funnel/FunnelReport';
|
|
import EventDataReport from './event-data/EventDataReport';
|
|
import InsightsReport from './insights/InsightsReport';
|
|
import RetentionReport from './retention/RetentionReport';
|
|
|
|
const reports = {
|
|
funnel: FunnelReport,
|
|
'event-data': EventDataReport,
|
|
insights: InsightsReport,
|
|
retention: RetentionReport,
|
|
};
|
|
|
|
export default function ReportDetails({ reportId, reportType }) {
|
|
const Report = reports[reportType];
|
|
|
|
return <Report reportId={reportId} />;
|
|
}
|