22 lines
796 B
TypeScript
22 lines
796 B
TypeScript
|
|
export type ProjectStatus = 'en_progreso' | 'planificacion' | 'completado' | 'revision';
|
||
|
|
|
||
|
|
export interface Project {
|
||
|
|
id: number;
|
||
|
|
name: string;
|
||
|
|
client: string;
|
||
|
|
status: ProjectStatus;
|
||
|
|
progress: number;
|
||
|
|
budget: number;
|
||
|
|
spent: number;
|
||
|
|
startDate: string;
|
||
|
|
endDate: string;
|
||
|
|
team: number;
|
||
|
|
avatar: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const STATUS_CONFIG: Record<ProjectStatus, { label: string; color: string }> = {
|
||
|
|
en_progreso: { label: "En Progreso", color: "bg-blue-100 text-blue-800 border-blue-200" },
|
||
|
|
planificacion: { label: "Planificación", color: "bg-purple-100 text-purple-800 border-purple-200" },
|
||
|
|
completado: { label: "Completado", color: "bg-green-100 text-green-800 border-green-200" },
|
||
|
|
revision: { label: "En Revisión", color: "bg-amber-100 text-amber-800 border-amber-200" }
|
||
|
|
};
|