mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
1719748a29
* chore: eslint add consistent-type-imports * fix avatar * Update Item.tsx
23 lines
549 B
TypeScript
23 lines
549 B
TypeScript
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;
|
|
/** @private Internal Usage. Safe to remove */
|
|
disableMenuItemTitleTooltip?: boolean;
|
|
}
|
|
|
|
const MenuContext = createContext<MenuContextProps>({
|
|
prefixCls: '',
|
|
firstLevel: true,
|
|
inlineCollapsed: false,
|
|
});
|
|
|
|
export default MenuContext;
|