This commit is contained in:
Surya Vemulapalli
2025-03-30 00:56:23 -04:00
4 changed files with 977 additions and 292 deletions

View File

@@ -16,6 +16,24 @@ export default async function Home() {
console.log("Session:", session?.user);
const handleEmergency = async () => {
// send texts
const response = await fetch("/api/sendMessage", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
message: `yo i need help`,
}),
});
if (!response.ok) {
console.error("Error sending message:", response.statusText);
return;
}
}
// If no session, show sign-up and login buttons
if (!session) {