Submenu.ts 267 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 import { Context, createContext } from "react"; export interface SubmenuContextType { visible: boolean, onChange: Function } export const SubmenuContext: Context<SubmenuContextType> = createContext<SubmenuContextType>({ visible: true, onChange: () => {} });