45 lines
871 B
TypeScript
45 lines
871 B
TypeScript
export type TripStatus =
|
|
| "completed"
|
|
| "in-progress"
|
|
| "cancelled"
|
|
| "quality-check";
|
|
|
|
export interface Trip {
|
|
id: string;
|
|
title: string;
|
|
code: string;
|
|
vessel: string;
|
|
vesselCode: string;
|
|
departureDate: string;
|
|
returnDate: string | null;
|
|
duration: string;
|
|
status: TripStatus;
|
|
}
|
|
|
|
export const TRIP_STATUS_CONFIG = {
|
|
completed: {
|
|
label: "Hoàn thành",
|
|
bgColor: "#D1FAE5",
|
|
textColor: "#065F46",
|
|
icon: "checkmark-circle",
|
|
},
|
|
"in-progress": {
|
|
label: "Đang diễn ra",
|
|
bgColor: "#DBEAFE",
|
|
textColor: "#1E40AF",
|
|
icon: "time",
|
|
},
|
|
cancelled: {
|
|
label: "Đã hủy",
|
|
bgColor: "#FEE2E2",
|
|
textColor: "#991B1B",
|
|
icon: "close-circle",
|
|
},
|
|
"quality-check": {
|
|
label: "Khảo sát địa chất",
|
|
bgColor: "#D1FAE5",
|
|
textColor: "#065F46",
|
|
icon: "checkmark-circle",
|
|
},
|
|
} as const;
|