mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 06:49:32 +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;
|