"use client"; import { useState } from "react"; import { auth0 } from "../lib/auth0"; export default async function Home() { const [contacts, setContacts] = useState([]); const [codeword, setCodeword] = useState(""); const session = await auth0.getSession(); console.log("Session:", session?.user); // If no session, show sign-up and login buttons if (!session) { return (

fauxcall

set emergency contacts

if you stop speaking or say the codeword, these contacts will be notified

{/* form for setting codeword */}
e.preventDefault()}> setCodeword(e.target.value)} placeholder="codeword" className="border border-gray-300 rounded-md p-2" />
{/* form for adding contacts */}
e.preventDefault()}> setContacts(e.target.value.split(","))} placeholder="contacts (comma separated)" className="border border-gray-300 rounded-md p-2" />
); } return (

Welcome, {session.user.name}!

); }