31 lines
793 B
TypeScript
31 lines
793 B
TypeScript
import type { Colors } from "../theme/colors";
|
|
|
|
export const STATUS_LABELS: Record<string, string> = {
|
|
pending: "En attente",
|
|
assigned: "Assignée",
|
|
en_route: "En route",
|
|
arrived: "Arrivée",
|
|
livre: "Livrée",
|
|
delivered: "Livré",
|
|
approved: "Terminée",
|
|
cancelled: "Annulé",
|
|
available: "Disponible",
|
|
busy: "Occupé",
|
|
offline: "Hors ligne",
|
|
};
|
|
|
|
export const getStatusColors = (colors: Colors): Record<string, string> => ({
|
|
pending: colors.warning,
|
|
assigned: colors.info,
|
|
en_route: colors.info,
|
|
arrived: colors.accent,
|
|
livre: colors.success,
|
|
delivered: colors.success,
|
|
approved: colors.successDark,
|
|
cancelled: colors.danger,
|
|
available: colors.success,
|
|
busy: colors.warning,
|
|
offline: colors.textMuted,
|
|
});
|
|
|