Files
mtdb_movie/resources/client/admin/reports/insights/insights-charts-context.ts
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01: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);
}