misc_pterodactyl-panel/resources/scripts/context/ModalContext.ts

16 lines
339 B
TypeScript
Raw Normal View History

import React from 'react';
export interface ModalContextValues {
dismiss: () => void;
toggleSpinner: (visible?: boolean) => void;
}
const ModalContext = React.createContext<ModalContextValues>({
dismiss: () => null,
toggleSpinner: () => null,
});
ModalContext.displayName = 'ModalContext';
export default ModalContext;