update colors + tweak code

This commit is contained in:
Jose B
2023-07-26 23:38:57 -05:00
parent 1836ad8e02
commit 05c5f6aefe
4 changed files with 10 additions and 14 deletions

View File

@@ -12,6 +12,8 @@ const App = () => {
// transcription, summary, etc
const serverData = useWebRTC(stream, () => { });
const sendStopCmd = () => serverData?.peer?.send(JSON.stringify({ cmd: "STOP" }))
return (
<div className="flex flex-col items-center h-[100svh]">
<div className="text-center py-6 mt-10">
@@ -19,7 +21,7 @@ const App = () => {
<p className="text-gray-500">Capture The Signal, Not The Noise</p>
</div>
<Recorder setStream={setStream} serverData={serverData} />
<Recorder setStream={setStream} onStop={sendStopCmd} />
<Dashboard
transcriptionText={serverData.text ?? "(No transcription yet)"}
finalSummary={serverData.finalSummary}