import { Button, ModalFooter } from '@chakra-ui/react'; import styles from './Modal.module.scss'; interface OntimeModalFooterProps { formId: string; handleRevert: () => void; isDirty: boolean; isValid: boolean; isSubmitting: boolean; } export default function OntimeModalFooter(props: OntimeModalFooterProps) { const { formId, handleRevert, isDirty, isValid, isSubmitting } = props; const disableRevert = !isDirty; const disableSubmit = isSubmitting || !isDirty || !isValid; return ( ); }