import React, { ComponentType, useCallback, useState } from 'react'; import { FormattedMessage as Message } from 'react-intl'; import { Helmet } from 'react-helmet-async'; import { Button } from 'app/components/ui/form'; import styles from './accountDeleted.scss'; interface Props { onRestore?: () => Promise; } const AccountDeleted: ComponentType = ({ onRestore }) => { const [isSubmitted, setIsSubmitted] = useState(false); const onRestoreClick = useCallback(() => { if (!onRestore) { return; } setIsSubmitted(true); onRestore().finally(() => setIsSubmitted(false)); }, [onRestore]); return (
{(pageTitle: string) => (

{pageTitle}

)}
); }; export default AccountDeleted;