mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
16 lines
319 B
TypeScript
16 lines
319 B
TypeScript
|
import * as React from 'react';
|
||
|
|
||
|
export interface LayoutContextProps {
|
||
|
siderHook: {
|
||
|
addSider: (id: string) => void;
|
||
|
removeSider: (id: string) => void;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export const LayoutContext = React.createContext<LayoutContextProps>({
|
||
|
siderHook: {
|
||
|
addSider: () => null,
|
||
|
removeSider: () => null,
|
||
|
},
|
||
|
});
|