Initial commit

This commit is contained in:
JetSprow
2026-04-29 05:12:39 +10:00
commit 27dbca9cbf
379 changed files with 43486 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import type { OrderStatus } from "@prisma/client";
import type { StatusTone } from "@/components/shared/status-badge";
export {
getOrderStatusTone,
orderKindLabels,
orderStatusLabels,
} from "@/components/shared/domain-badges";
export function formatOrderTraffic(trafficGb: number | null) {
return trafficGb === null ? "—" : `${trafficGb} GB`;
}
export function formatOrderAmount(amount: { toString(): string } | number | string) {
return `¥${Number(amount).toFixed(2)}`;
}
export type { OrderStatus, StatusTone };