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