update tab diary

This commit is contained in:
2025-12-03 00:10:11 +07:00
parent 80c02fef9d
commit 47e9bac0f9
11 changed files with 1323 additions and 13 deletions

44
components/diary/types.ts Normal file
View File

@@ -0,0 +1,44 @@
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;