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

13 lines
333 B
TypeScript

import React from 'react';
interface DialogContextType {
icon: React.RefObject<HTMLDivElement | undefined>;
buttons: React.RefObject<HTMLDivElement | undefined>;
}
const DialogContext = React.createContext<DialogContextType>({
icon: React.createRef(),
buttons: React.createRef(),
});
export default DialogContext;