diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-05-23 05:26:26 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-05-23 05:26:26 +0000 |
| commit | 0547ab2fe1701d84753d0e078bba718a79b07a0c (patch) | |
| tree | 56e46cfa2e93a43ceaed0a8467ae21e61e9b0ddc /lib/tech-vendors/utils.ts | |
| parent | 37c618b94902603701e1fe3df7f76d238285f066 (diff) | |
(최겸)기술영업 벤더 개발 초안(index 스키마 미포함 상태)
Diffstat (limited to 'lib/tech-vendors/utils.ts')
| -rw-r--r-- | lib/tech-vendors/utils.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/tech-vendors/utils.ts b/lib/tech-vendors/utils.ts new file mode 100644 index 00000000..b0bc33f0 --- /dev/null +++ b/lib/tech-vendors/utils.ts @@ -0,0 +1,28 @@ +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 "PENDING_REVIEW": + return Clock; + case "IN_REVIEW": + return Hourglass; + case "REJECTED": + return XCircle; + case "ACTIVE": + return CheckCircle2; + case "INACTIVE": + return CircleAlert; + case "BLACKLISTED": + return ShieldAlert; + default: + return CircleAlert; + } +} + + |
