mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
* fix: public transcript visibility * fix: transcript permissions frontend * dead code removal * chore: remove unused code * fix search tests * fix search tests --------- Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
import React from "react";
|
|
import { Icon, Box } from "@chakra-ui/react";
|
|
import {
|
|
FaCheck,
|
|
FaTrash,
|
|
FaStar,
|
|
FaMicrophone,
|
|
FaGear,
|
|
} from "react-icons/fa6";
|
|
import { TranscriptStatus } from "../../../lib/transcript";
|
|
|
|
interface TranscriptStatusIconProps {
|
|
status: TranscriptStatus;
|
|
}
|
|
|
|
export default function TranscriptStatusIcon({
|
|
status,
|
|
}: TranscriptStatusIconProps) {
|
|
switch (status) {
|
|
case "ended":
|
|
return (
|
|
<Box as="span" title="Processing done">
|
|
<Icon color="green" as={FaCheck} />
|
|
</Box>
|
|
);
|
|
case "error":
|
|
return (
|
|
<Box as="span" title="Processing error">
|
|
<Icon color="red.500" as={FaTrash} />
|
|
</Box>
|
|
);
|
|
case "idle":
|
|
return (
|
|
<Box as="span" title="New meeting, no recording">
|
|
<Icon color="yellow.500" as={FaStar} />
|
|
</Box>
|
|
);
|
|
case "processing":
|
|
return (
|
|
<Box as="span" title="Processing in progress">
|
|
<Icon color="gray.500" as={FaGear} />
|
|
</Box>
|
|
);
|
|
case "recording":
|
|
return (
|
|
<Box as="span" title="Recording in progress">
|
|
<Icon color="blue.500" as={FaMicrophone} />
|
|
</Box>
|
|
);
|
|
default:
|
|
return null;
|
|
}
|
|
}
|