mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
db4ee53ffa
* feat : new components app * feat: update app * feat: update app * feat: update app * feat: update app * feat: update app * feat: update app * feat: update app * feat: update style * feat: update style * feat: update style * feat: add style * chore: code clean * feat: add prefixCls * chore: update snapshot * chore: update snapshot * chore: update snapshot * test: image test * Update components/app/index.zh-CN.md Co-authored-by: afc163 <afc163@gmail.com> * feat : update for reviewer * feat: update * feat: update * feat: update snap Co-authored-by: MadCcc <1075746765@qq.com> Co-authored-by: afc163 <afc163@gmail.com>
20 lines
585 B
TypeScript
20 lines
585 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: {} as MessageInstance,
|
|
notification: {} as NotificationInstance,
|
|
modal: {} as ModalType,
|
|
});
|
|
|
|
export default AppContext;
|