import Image from 'next/image' import { useState } from 'react' import { Loader } from '../../design/Loader' export interface ConfirmGuildJoinProps { className?: string handleYes: () => void | Promise handleNo: () => void | Promise } export const ConfirmGuildJoin: React.FC = (props) => { const { className, handleYes, handleNo } = props const [isLoading, setIsLoading] = useState(false) const handleYesLoading = async (): Promise => { setIsLoading((isLoading) => !isLoading) await handleYes() } return (
{isLoading ? ( ) : ( <> Join Guild Illustration

Rejoindre la guild ?

)}
) }