diff --git a/React/src/app/call/page.tsx b/React/src/app/call/page.tsx index 4eb2755..5a76e36 100644 --- a/React/src/app/call/page.tsx +++ b/React/src/app/call/page.tsx @@ -12,6 +12,25 @@ const CallPage = () => { return () => clearInterval(interval); }, []); + + 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; + } + } + return (
@@ -19,7 +38,7 @@ const CallPage = () => { Call with a Definitely Real Person
{callDuration}s
- +