ant-design/components/menu/MenuContext.tsx

17 lines
373 B
TypeScript
Raw Normal View History

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;