diff --git a/www/app/transcripts/new/page.tsx b/www/app/transcripts/new/page.tsx index 06908e89..4eb5f47c 100644 --- a/www/app/transcripts/new/page.tsx +++ b/www/app/transcripts/new/page.tsx @@ -48,9 +48,10 @@ const App = () => { webRTC?.peer?.send(JSON.stringify({ cmd: "STOP" })); setStream(null); }} + topics={webSockets.topics} getAudioStream={getAudioStream} audioDevices={audioDevices} - topics={webSockets.topics} + useActiveTopic={useActiveTopic} /> >; + onStop: () => void; + topics: Topic[]; + getAudioStream: (deviceId: string | null) => Promise; + audioDevices: Option[]; + useActiveTopic: [ + Topic | null, + React.Dispatch>, + ]; +}; + +export default function Recorder(props: RecorderProps) { const waveformRef = useRef(null); const [wavesurfer, setWavesurfer] = useState(null); const [record, setRecord] = useState(null);