alpha-version-dce-check-in-ui
Version:
UI for taking attendance and checking people in.
42 lines (41 loc) • 1.15 kB
TypeScript
/**
* A generic popup modal (isolated)
* @author Gabe Abrams
*/
import React from 'react';
import Variant from '../types/Variant';
import ModalButtonType from '../types/ModalButtonType';
import ModalSize from '../types/ModalSize';
import ModalType from '../types/ModalType';
type Props = {
type?: ModalType;
size?: ModalSize;
title?: React.ReactNode;
children?: React.ReactNode;
onClose?: (type: ModalButtonType) => void;
dontAllowBackdropExit?: boolean;
dontShowXButton?: boolean;
okayLabel?: string;
okayVariant?: Variant;
cancelLabel?: string;
cancelVariant?: Variant;
yesLabel?: string;
yesVariant?: Variant;
noLabel?: string;
noVariant?: Variant;
abandonLabel?: string;
abandonVariant?: Variant;
goBackLabel?: string;
goBackVariant?: Variant;
continueLabel?: string;
continueVariant?: Variant;
imSureLabel?: string;
imSureVariant?: Variant;
deleteLabel?: string;
deleteVariant?: Variant;
confirmLabel?: string;
confirmVariant?: Variant;
onTopOfOtherModals?: boolean;
};
declare const Modal: React.FC<Props>;
export default Modal;