'use client'; import React from "react"; interface ASRResultDisplayProps { result: any; ready: boolean | null; task: string; } export const ASRResultDisplay = ({ result, ready }: ASRResultDisplayProps) => { if (ready === false) { return
Loading model...
; } if (!result) { return
No transcription yet.
; } if (result.error) { return
Error: {result.error}
; } return (
Transcript:
{result.text || "No text found."}
); };