import React, { ReactNode } from "react"; export const CellFocusedStateContext = React.createContext(false); export const CellFocusedStateContextProvider = ({ cellFocused, children, }: { cellFocused: boolean; children: ReactNode; }) => { return ( {children} ); }; export function withCellFocusedStateContext( Component: React.ComponentType ) { return function WithCellFocusedStateContextWrapper(props) { const cellFocusedState = React.useContext(CellFocusedStateContext); return ; }; }