2022-11-25 20:25:03 +00:00
|
|
|
import { createContext } from 'react';
|
2022-07-03 17:29:23 +00:00
|
|
|
import { DialogContextType, DialogWrapperContextType } from './types';
|
2022-07-02 22:27:22 +00:00
|
|
|
|
2022-11-25 20:25:03 +00:00
|
|
|
export const DialogContext = 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-11-25 20:25:03 +00:00
|
|
|
export const DialogWrapperContext = createContext<DialogWrapperContextType>({
|
2022-07-03 17:29:23 +00:00
|
|
|
props: {},
|
|
|
|
setProps: () => null,
|
|
|
|
close: () => null,
|
|
|
|
});
|