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