misc_pterodactyl-panel/resources/scripts/components/elements/dialog/context.ts

15 lines
411 B
TypeScript
Raw Permalink Normal View History

2022-11-25 20:25:03 +00:00
import { createContext } from 'react';
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-11-25 20:25:03 +00:00
export const DialogWrapperContext = createContext<DialogWrapperContextType>({
props: {},
setProps: () => null,
close: () => null,
});