mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
01ae089b70
* feat: update doc * Update basic.md Co-authored-by: lijianan <574980606@qq.com>
20 lines
544 B
TypeScript
20 lines
544 B
TypeScript
import React from 'react';
|
|
import type { MessageInstance } from '../message/interface';
|
|
import type { NotificationInstance } from '../notification/interface';
|
|
import type { ModalStaticFunctions } from '../modal/confirm';
|
|
|
|
type ModalType = Omit<ModalStaticFunctions, 'warn'>;
|
|
export interface useAppProps {
|
|
message: MessageInstance;
|
|
notification: NotificationInstance;
|
|
modal: ModalType;
|
|
}
|
|
|
|
const AppContext = React.createContext<useAppProps>({
|
|
message: {},
|
|
notification: {},
|
|
modal: {},
|
|
} as useAppProps);
|
|
|
|
export default AppContext;
|