misc_pterodactyl-panel/resources/scripts/components/elements/dialog/context.ts
2022-11-25 13:25:03 -07:00

14 lines
411 B
TypeScript

import { createContext } from 'react';
import { DialogContextType, DialogWrapperContextType } from './types';
export const DialogContext = createContext<DialogContextType>({
setIcon: () => null,
setFooter: () => null,
setIconPosition: () => null,
});
export const DialogWrapperContext = createContext<DialogWrapperContextType>({
props: {},
setProps: () => null,
close: () => null,
});