Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/components/elements/dialog/context.ts
10260 views
1
import React from 'react';
2
import { DialogContextType, DialogWrapperContextType } from './types';
3
4
export const DialogContext = React.createContext<DialogContextType>({
5
setIcon: () => null,
6
setFooter: () => null,
7
setIconPosition: () => null,
8
});
9
10
export const DialogWrapperContext = React.createContext<DialogWrapperContextType>({
11
props: {},
12
setProps: () => null,
13
close: () => null,
14
});
15
16