import { useState, Dispatch, SetStateAction } from 'react' import { Modal, Button } from 'react-bootstrap' import { useTranslation, Trans } from 'react-i18next' import getMeta from '../../../../utils/meta' import LeaveModalForm, { LeaveModalFormProps } from './modal-form' type LeaveModalContentProps = { handleHide: () => void inFlight: boolean setInFlight: Dispatch> } function LeaveModalContentBlock({ setInFlight, isFormValid, setIsFormValid, }: LeaveModalFormProps) { const { t } = useTranslation() const isSaas = getMeta('ol-isSaas') as boolean const hasPassword = getMeta('ol-hasPassword') as boolean if (isSaas && !hasPassword) { return (

{t('delete_acct_no_existing_pw')}

) } return ( ) } function LeaveModalContent({ handleHide, inFlight, setInFlight, }: LeaveModalContentProps) { const { t } = useTranslation() const [isFormValid, setIsFormValid] = useState(false) return ( <> {t('delete_account')}

]} // eslint-disable-line react/jsx-key />

) } export default LeaveModalContent