UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

15 lines (14 loc) 559 B
import React, { ReactNode } from 'react'; export interface LayoutContextValue { siderHook?: { addSider: (id: string) => void; removeSider: (id: string) => void; }; getPrefixCls(suffixCls: string, customizePrefixCls?: string): string; } export interface LayoutContextProviderProps extends LayoutContextValue { children?: ReactNode; } declare const LayoutContext: React.Context<LayoutContextValue>; export declare const LayoutContextProvider: React.NamedExoticComponent<LayoutContextProviderProps>; export default LayoutContext;