@rsc-labs/medusa-store-analytics
Version:
Get analytics data about your store
26 lines (25 loc) • 795 B
TypeScript
export type ChartDataType = {
current: {
date: Date;
value: any;
}[];
previous: {
date: Date;
value: any;
}[];
};
export declare const ChartCustomTooltip: ({ active, payload, label, resolutionType }: {
active: any;
payload: any;
label: any;
resolutionType: any;
}) => import("react/jsx-runtime").JSX.Element;
export declare const ChartCurrentPrevious: ({ rawChartData, fromDate, toDate, fromCompareDate, toCompareDate, compareEnabled, connectEmptyPointsUsingPreviousValue }: {
rawChartData: ChartDataType;
fromDate: Date;
toDate: Date;
fromCompareDate?: Date;
toCompareDate?: Date;
compareEnabled?: boolean;
connectEmptyPointsUsingPreviousValue?: boolean;
}) => import("react/jsx-runtime").JSX.Element;