@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
19 lines (15 loc) • 399 B
text/typescript
import React from 'react';
import { noop } from '@douyinfe/semi-foundation/utils/function';
export interface ContextType {
siderHook: {
addSider: (id: string) => void;
removeSider: (id: string) => void
}
}
const LayoutContext = React.createContext<ContextType>({
siderHook: {
addSider: noop,
removeSider: noop,
},
});
export default LayoutContext;