mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
16 lines
595 B
TypeScript
16 lines
595 B
TypeScript
import React from 'react';
|
|
|
|
import type { ConfirmCancelBtnProps } from './components/ConfirmCancelBtn';
|
|
import type { ConfirmOkBtnProps } from './components/ConfirmOkBtn';
|
|
import type { NormalCancelBtnProps } from './components/NormalCancelBtn';
|
|
import type { NormalOkBtnProps } from './components/NormalOkBtn';
|
|
|
|
export type ModalContextProps = NormalCancelBtnProps &
|
|
NormalOkBtnProps &
|
|
ConfirmOkBtnProps &
|
|
ConfirmCancelBtnProps;
|
|
|
|
export const ModalContext = React.createContext<ModalContextProps>({} as ModalContextProps);
|
|
|
|
export const { Provider: ModalContextProvider } = ModalContext;
|