sendou.ink/frontend-react/src/components/freeagents/VCIcon.tsx
2020-01-31 02:24:07 +02:00

35 lines
618 B
TypeScript

import React from "react"
import { Box } from "@chakra-ui/core"
import { FaMicrophone } from "react-icons/fa"
interface VCIconProps {
canVC: "YES" | "USUALLY" | "SOMETIMES" | "NO"
}
const color = {
YES: "green.500",
USUALLY: "yellow.500",
SOMETIMES: "yellow.500",
NO: "red.500",
}
const title = {
YES: "Can VC",
USUALLY: "Can VC usually",
SOMETIMES: "Can VC sometimes",
NO: "Can't VC",
}
const VCIcon: React.FC<VCIconProps> = ({ canVC }) => (
<Box
as={FaMicrophone}
title={title[canVC]}
color={color[canVC]}
w="30px"
h="auto"
cursor="help"
/>
)
export default VCIcon