'use client'; import { useAuth } from '@/hooks/useAuth'; import { useEffect, useState } from 'react'; interface AuthModalProps { isOpen: boolean; onClose: () => void; onSuccess?: () => void; } export function AuthModal({ isOpen, onClose, onSuccess }: AuthModalProps) { const { authenticate, isAuthenticating, authError } = useAuth(); const handleAuthenticate = async () => { const success = await authenticate(); if (success) { onSuccess?.(); onClose(); } }; if (!isOpen) return null; return (
Your session has expired. Please sign a message with your wallet to continue.
{authError && (This signature will not trigger any blockchain transaction or cost gas fees.