// /app/login/page.tsx 'use test' // Marks this component as a client component 'use client' import classnames from 'classnames'; import { useActionState } from 'react' import { signInAndFetchUser } from '@/app/actions/signin' import { Schibsted_Grotesk } from 'next/font/google' import Link from 'next/link'; const font = Schibsted_Grotesk({ subsets: ['latin'] }) export default function SignInPage() { // useActionState manages the server state (errors, loading) and form binding const [state, formAction, isPending] = useActionState(signInAndFetchUser, null) return (
Britton Benefits {/*

Britton

Benefits

*/}
Sign In
{/* Error Message Display */} {state?.error && (
{state.error}
)}
Forgot Password?
Not signed up?{' '} Register Here
) }