mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
28 lines
811 B
TypeScript
28 lines
811 B
TypeScript
import Money from 'assets/money.svg';
|
|
import { REPORT_TYPES } from 'lib/constants';
|
|
import Report from '../[reportId]/Report';
|
|
import ReportBody from '../[reportId]/ReportBody';
|
|
import ReportHeader from '../[reportId]/ReportHeader';
|
|
import ReportMenu from '../[reportId]/ReportMenu';
|
|
import RevenueParameters from './RevenueParameters';
|
|
import RevenueView from './RevenueView';
|
|
|
|
const defaultParameters = {
|
|
type: REPORT_TYPES.revenue,
|
|
parameters: {},
|
|
};
|
|
|
|
export default function RevenueReport({ reportId }: { reportId?: string }) {
|
|
return (
|
|
<Report reportId={reportId} defaultParameters={defaultParameters}>
|
|
<ReportHeader icon={<Money />} />
|
|
<ReportMenu>
|
|
<RevenueParameters />
|
|
</ReportMenu>
|
|
<ReportBody>
|
|
<RevenueView />
|
|
</ReportBody>
|
|
</Report>
|
|
);
|
|
}
|