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

15 lines
411 B
TypeScript
Raw Permalink Normal View History

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