mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
15 lines
315 B
TypeScript
15 lines
315 B
TypeScript
|
import createContext from '@ant-design/create-react-context';
|
||
|
|
||
|
export type MenuTheme = 'light' | 'dark';
|
||
|
|
||
|
export interface MenuContextProps {
|
||
|
inlineCollapsed: boolean;
|
||
|
antdMenuTheme?: MenuTheme;
|
||
|
}
|
||
|
|
||
|
const MenuContext = createContext<MenuContextProps>({
|
||
|
inlineCollapsed: false,
|
||
|
});
|
||
|
|
||
|
export default MenuContext;
|