"use client"; import React, { useEffect, useState } from "react"; import Recorder from "./components/record.js"; import { Dashboard } from "./components/dashboard.js"; import useWebRTC from "./components/webrtc.js"; import "../public/button.css"; const App = () => { const [stream, setStream] = useState(null); const [disconnected, setDisconnected] = useState(false); useEffect(() => { if (process.env.NEXT_PUBLIC_ENV === "development") { document.onkeyup = (e) => { if (e.key === "d") { setDisconnected((prev) => !prev); } }; } }, []); // This is where you'd send the stream and receive the data from the server. // transcription, summary, etc const serverData = useWebRTC(stream); const sendStopCmd = () => serverData?.peer?.send(JSON.stringify({ cmd: "STOP" })); return (

Reflector

Capture The Signal, Not The Noise

); }; export default App;