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

type StatusType = TechVendor["status"];

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