react-code-dataset / recharts /src /context /brushUpdateContext.tsx
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
274 Bytes
import { createContext } from 'react';
export interface BrushStartEndIndex {
startIndex: number;
endIndex: number;
}
export type OnBrushUpdate = (newState: BrushStartEndIndex) => void;
export const BrushUpdateDispatchContext = createContext<OnBrushUpdate>(() => {});