summaryrefslogtreecommitdiff
path: root/lib/tech-vendors/utils.ts
blob: ac49c78a5dcb01259560fba8557a331954bead75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { LucideIcon, Hourglass, CheckCircle2, XCircle, CircleAlert, Clock, ShieldAlert } from "lucide-react";
import type { TechVendor } from "@/db/schema/techVendors";

type StatusType = TechVendor["status"];

/**
 * 기술벤더 상태에 대한 아이콘을 반환합니다.
 */
export function getVendorStatusIcon(status: StatusType): LucideIcon {
  switch (status) {
    case "ACTIVE":
      return CheckCircle2;
    case "INACTIVE":
      return CircleAlert;
    case "BLACKLISTED":
      return ShieldAlert;
    default:
      return CircleAlert;
  }
}