import { faClock } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; type StatusItemProps = { statusInfoItem: string; description: string; }; const StatusItemUTC = ({ statusInfoItem, description }: StatusItemProps) => { const humanReadable = (string: string) => { if (description.includes("UTC")) { const text = string.slice(0, statusInfoItem.length - 3); return text; } }; return (

{description.toLowerCase().includes("utc") && humanReadable(statusInfoItem)}

{description}

); }; export default StatusItemUTC;