mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 01:48:12 +00:00
changes
This commit is contained in:
@@ -4,3 +4,17 @@ import { twMerge } from "tailwind-merge";
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
|
||||
/** Human label for a trade direction — DOMESTIC reads "Intercity" everywhere. */
|
||||
export function directionLabel(direction?: string | null): string {
|
||||
switch (direction) {
|
||||
case "IMPORT":
|
||||
return "Import";
|
||||
case "EXPORT":
|
||||
return "Export";
|
||||
case "DOMESTIC":
|
||||
return "Intercity";
|
||||
default:
|
||||
return direction || "—";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user