ant-design/components/layout/context.ts
二货爱吃白萝卜 7f9aff2cfb
enhance: auto layout hasSider ()
* enhance: auto layout hasSider

* test: update snapshot
2023-10-16 14:49:01 +08:00

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,
},
});