mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +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;
|