misc_pterodactyl-panel/resources/scripts/components/elements/dialog/context.ts
2022-07-03 13:29:23 -04:00

14 lines
411 B
TypeScript

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