29 lines
821 B
TypeScript
29 lines
821 B
TypeScript
'use client';
|
|
import { Report } from '../[reportId]/Report';
|
|
import { ReportHeader } from '../[reportId]/ReportHeader';
|
|
import { ReportMenu } from '../[reportId]/ReportMenu';
|
|
import { ReportBody } from '../[reportId]/ReportBody';
|
|
import { UTMParameters } from './UTMParameters';
|
|
import { UTMView } from './UTMView';
|
|
import { Icons } from '@/components/icons';
|
|
import { REPORT_TYPES } from '@/lib/constants';
|
|
|
|
const defaultParameters = {
|
|
type: REPORT_TYPES.utm,
|
|
parameters: {},
|
|
};
|
|
|
|
export function UTMReport({ reportId }: { reportId?: string }) {
|
|
return (
|
|
<Report reportId={reportId} defaultParameters={defaultParameters}>
|
|
<ReportHeader icon={<Icons.Tag />} />
|
|
<ReportMenu>
|
|
<UTMParameters />
|
|
</ReportMenu>
|
|
<ReportBody>
|
|
<UTMView />
|
|
</ReportBody>
|
|
</Report>
|
|
);
|
|
}
|