mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 20:59:05 +00:00
20 lines
502 B
TypeScript
20 lines
502 B
TypeScript
type LiveTranscriptionProps = {
|
|
text: string;
|
|
translateText: string;
|
|
};
|
|
|
|
export default function LiveTrancription(props: LiveTranscriptionProps) {
|
|
return (
|
|
<div className="text-center p-4">
|
|
<p className="text-lg md:text-xl font-bold line-clamp-4">
|
|
{props.translateText ? props.translateText : props.text}
|
|
</p>
|
|
{props.translateText && (
|
|
<p className="text-base md:textlg font-bold line-clamp-4">
|
|
{props.text}
|
|
</p>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|