import Image from "next/image" import { useState } from "react" import useTranslation from "next-translate/useTranslation" import classNames from "clsx" import { Loader } from "../../design/Loader" export interface ConfirmPopupProps { className?: string title: string handleYes: () => void | Promise handleNo: () => void | Promise } export const ConfirmPopup: React.FC = ({ ...props }) => { const { t } = useTranslation() const [isLoading, setIsLoading] = useState(false) const handleYesLoading = async (): Promise => { setIsLoading((isLoading) => { return !isLoading }) await props.handleYes() } return (
Illustration

{props.title}

) }