PromoCursed/node_modules/antd/lib/app/context.d.ts

17 lines
650 B
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import React from 'react';
import type { ConfigOptions as MessageConfig, MessageInstance } from '../message/interface';
import type { HookAPI as ModalHookAPI } from '../modal/useModal';
import type { NotificationConfig, NotificationInstance } from '../notification/interface';
export interface AppConfig {
message?: MessageConfig;
notification?: NotificationConfig;
}
export declare const AppConfigContext: React.Context<AppConfig>;
export interface useAppProps {
message: MessageInstance;
notification: NotificationInstance;
modal: ModalHookAPI;
}
declare const AppContext: React.Context<useAppProps>;
export default AppContext;