Spaces:
Sleeping
Sleeping
File size: 1,135 Bytes
49d3082 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import React from "react";
import { useAtom } from "jotai";
import { TranscribeAtom } from "../Variables";
function TranscribePage() {
const [transcribe, setTranscribe] = useAtom(TranscribeAtom);
return (
<div className="p-5 pl-10 flex flex-col h-full">
<p className="text-xl font-semibold text-primary-950 mb-5">Transcript of speech</p>
<div className="h-full overflow-y-scroll noScrollBars">
{transcribe.map((item, index) => {
if (item?.isCommand) {
return (
<p key={index} className="bg-primary-100 rounded-lg p-2 my-1">
{`>>`} {item?.msg}
</p>
);
} else {
return (
<p key={index} className="">
{item?.msg}
</p>
);
}
})}
</div>
</div>
);
}
export default TranscribePage;
|