mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
f1e0c9c1d2
* test: Update snapshot * chore: disable tooltip * chore: rename
23 lines
544 B
TypeScript
23 lines
544 B
TypeScript
import { createContext } from 'react';
|
|
import { DirectionType } from '../config-provider';
|
|
|
|
export type MenuTheme = 'light' | 'dark';
|
|
|
|
export interface MenuContextProps {
|
|
prefixCls: string;
|
|
inlineCollapsed: boolean;
|
|
antdMenuTheme?: MenuTheme;
|
|
direction?: DirectionType;
|
|
firstLevel: boolean;
|
|
/** @private Internal Usage. Safe to remove */
|
|
disableMenuItemTitleTooltip?: boolean;
|
|
}
|
|
|
|
const MenuContext = createContext<MenuContextProps>({
|
|
prefixCls: '',
|
|
firstLevel: true,
|
|
inlineCollapsed: false,
|
|
});
|
|
|
|
export default MenuContext;
|