import { FC } from "react"; import toast from "react-hot-toast"; import Modal from "../../common/component/Modal"; import StyledModal from "../../common/component/styled/Modal"; import Button from "../../common/component/styled/Button"; import { useLazyDeleteCurrentAccountQuery } from "../../app/services/auth"; import { useTranslation } from "react-i18next"; interface Props { closeModal: () => void; } const RemoveConfirmModal: FC = ({ closeModal }) => { const { t } = useTranslation("member"); const [removeCurrentAccount, { isLoading }] = useLazyDeleteCurrentAccountQuery(); const handleRemove = async () => { try { await removeCurrentAccount(); } catch (error) { toast.error("Remove Account Failed!"); } }; return ( } > ); }; export default RemoveConfirmModal;