add markers + sync w/ topics

This commit is contained in:
Jose B
2023-08-14 12:14:33 -05:00
parent 9c9428c456
commit 5ed203547f
3 changed files with 43 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import "../public/button.css";
const App = () => {
const [stream, setStream] = useState(null);
const [disconnected, setDisconnected] = useState(false);
const useActiveTopic = useState(null);
useEffect(() => {
if (process.env.NEXT_PUBLIC_ENV === "development") {
@@ -38,6 +39,8 @@ const App = () => {
webRTC?.peer?.send(JSON.stringify({ cmd: "STOP" }));
setStream(null);
}}
topics={webSockets.topics}
useActiveTopic={useActiveTopic}
/>
<Dashboard
transcriptionText={webSockets.transcriptText}
@@ -45,6 +48,7 @@ const App = () => {
topics={webSockets.topics}
stream={stream}
disconnected={disconnected}
useActiveTopic={useActiveTopic}
/>
</div>
);