You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
534 B

import { createContext } from 'react';
import type { DirectionType } from '../config-provider';
export type MenuTheme = 'light' | 'dark';
export interface MenuContextProps {
prefixCls: string;
inlineCollapsed: boolean;
antdMenuTheme?: MenuTheme;
direction?: DirectionType;
firstLevel: boolean;
/** @internal Safe to remove */
disableMenuItemTitleTooltip?: boolean;
}
const MenuContext = createContext<MenuContextProps>({
prefixCls: '',
firstLevel: true,
inlineCollapsed: false,
});
export default MenuContext;