mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
53ce81690e
https://github.com/ant-design/ant-design/issues/17803 Co-authored-by: Hau Dao <hau.vdao@gmail.com>
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;
|