import { BsPersonWalking } from "react-icons/bs"; import { FaAmazon, FaCarSide, FaCat, FaCheckCircle, FaCircle, FaDog, FaFedex, FaFire, FaLeaf, FaUps, } from "react-icons/fa"; import { LuBox, LuLassoSelect } from "react-icons/lu"; import { MdRecordVoiceOver } from "react-icons/md"; export function getIconTypeForGroup(icon: string) { switch (icon) { case "car": return FaCarSide; case "cat": return FaCat; case "dog": return FaDog; case "leaf": return FaLeaf; default: return FaCircle; } } export function getIconForGroup(icon: string, className: string = "size-4") { const GroupIcon = getIconTypeForGroup(icon); return ; } export function getIconForLabel(label: string, className?: string) { if (label.endsWith("-verified")) { return getVerifiedIcon(label, className); } switch (label) { case "car": return ; case "cat": return ; case "bark": case "dog": return ; case "fire_alarm": return ; case "package": return ; case "person": return ; // audio case "crying": case "laughter": case "scream": case "speech": case "yell": return ; // sub labels case "amazon": return ; case "fedex": return ; case "ups": return ; default: return ; } } function getVerifiedIcon(label: string, className?: string) { const simpleLabel = label.substring(0, label.lastIndexOf("-")); return (
{getIconForLabel(simpleLabel, className)}
); }