mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
24 lines
527 B
TypeScript
24 lines
527 B
TypeScript
import { createContext } from 'react';
|
|
|
|
import type { DirectionType } from '../config-provider';
|
|
|
|
export type MenuTheme = 'light' | 'dark';
|
|
|
|
export interface MenuContextProps {
|
|
prefixCls: string;
|
|
inlineCollapsed: boolean;
|
|
direction?: DirectionType;
|
|
theme?: MenuTheme;
|
|
firstLevel: boolean;
|
|
/** @internal Safe to remove */
|
|
disableMenuItemTitleTooltip?: boolean;
|
|
}
|
|
|
|
const MenuContext = createContext<MenuContextProps>({
|
|
prefixCls: '',
|
|
firstLevel: true,
|
|
inlineCollapsed: false,
|
|
});
|
|
|
|
export default MenuContext;
|