import React from "react"; import Image from "next/image"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { usePrivy } from "@privy-io/react-auth"; const signin: React.FC = () => { const router = useRouter(); const { login, authenticated, ready } = usePrivy(); const handleAccess = () => { if (authenticated) { router.push("/chat"); } else { login(); } }; return (
Get access to dashboard