ant-design/components/menu/MenuContext.tsx
2020-11-04 14:12:45 +08:00

17 lines
373 B
TypeScript

import { createContext } from 'react';
import { DirectionType } from '../config-provider';
export type MenuTheme = 'light' | 'dark';
export interface MenuContextProps {
inlineCollapsed: boolean;
antdMenuTheme?: MenuTheme;
direction?: DirectionType;
}
const MenuContext = createContext<MenuContextProps>({
inlineCollapsed: false,
});
export default MenuContext;