59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
TypeScript
export type TripStatus =
|
|
| "created" // Đã khởi tạo
|
|
| "pending" // Chờ duyệt
|
|
| "approved" // Đã duyệt
|
|
| "in-progress" // Đang hoạt động
|
|
| "completed" // Hoàn thành
|
|
| "cancelled"; // Đã hủy
|
|
|
|
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 = {
|
|
created: {
|
|
label: "Đã khởi tạo",
|
|
bgColor: "#F3F4F6", // Gray background
|
|
textColor: "#4B5563", // Gray text
|
|
icon: "document-text",
|
|
},
|
|
pending: {
|
|
label: "Chờ duyệt",
|
|
bgColor: "#FEF3C7", // Yellow background
|
|
textColor: "#92400E", // Dark yellow text
|
|
icon: "hourglass",
|
|
},
|
|
approved: {
|
|
label: "Đã duyệt",
|
|
bgColor: "#E0E7FF", // Indigo background
|
|
textColor: "#3730A3", // Dark indigo text
|
|
icon: "checkmark-done",
|
|
},
|
|
"in-progress": {
|
|
label: "Đang hoạt động",
|
|
bgColor: "#DBEAFE", // Blue background
|
|
textColor: "#1E40AF", // Dark blue text
|
|
icon: "sync",
|
|
},
|
|
completed: {
|
|
label: "Hoàn thành",
|
|
bgColor: "#D1FAE5", // Green background
|
|
textColor: "#065F46", // Dark green text
|
|
icon: "checkmark-circle",
|
|
},
|
|
cancelled: {
|
|
label: "Đã hủy",
|
|
bgColor: "#FEE2E2", // Red background
|
|
textColor: "#991B1B", // Dark red text
|
|
icon: "close-circle",
|
|
},
|
|
} as const;
|