Files
mtdb_movie/resources/client/admin/reports/insights/insights-charts-context.ts
T
maher 511fad8199
Build / run (push) Has been cancelled
Initial commit
2026-05-14 13:42:10 +02:00

15 lines
424 B
TypeScript
Executable File

import React, {useContext} from 'react';
import {DateRangeValue} from '@common/ui/forms/input-field/date/date-range-picker/date-range-value';
export interface InsightsChartsContextValue {
dateRange: DateRangeValue;
model: string;
}
export const InsightsChartsContext =
React.createContext<InsightsChartsContextValue>(null!);
export function useInsightsChartContext() {
return useContext(InsightsChartsContext);
}