2022-07-02 21:24:12 +00:00
|
|
|
import React from 'react';
|
2022-07-03 17:29:23 +00:00
|
|
|
import { DialogContextType, DialogWrapperContextType } from './types';
|
2022-07-02 22:27:22 +00:00
|
|
|
|
2022-07-03 17:29:23 +00:00
|
|
|
export const DialogContext = React.createContext<DialogContextType>({
|
2022-07-02 22:27:22 +00:00
|
|
|
setIcon: () => null,
|
|
|
|
setFooter: () => null,
|
|
|
|
setIconPosition: () => null,
|
2022-07-02 21:24:12 +00:00
|
|
|
});
|
|
|
|
|
2022-07-03 17:29:23 +00:00
|
|
|
export const DialogWrapperContext = React.createContext<DialogWrapperContextType>({
|
|
|
|
props: {},
|
|
|
|
setProps: () => null,
|
|
|
|
close: () => null,
|
|
|
|
});
|