Truck Review Selector - Copy this React, Tailwind Component to your project
You can generate a component where I will have the following, it would be a table where the header is the date of each Sunday of the month, where below they will have a span that says (number of trucks selected) + selected, the Sundays that have already passed or already have reviews They must be disabled to avoid modifications. Continuing below you will see the trucks that have been selected through a combobox that will be at the top of everything. The trucks that will be seen are those selected by the combobox or those that already have the function of bringing reviews that are linked to them. the trucks export interface Equipo { id: string; numEconomico: string; marca: string; modelo: string; year: number; serie?: string; placas?: string; m3?: number; tipoTanque?: string; activo?: boolean; estado: Estado; areaId?: string; area?: WorkArea; archivos: Archivo[]; tanque: Tanque[]; mantenimiento: Mantenimiento[]; Revisiones: Revisiones[]; createAt: Date; updateAt: Date; Evidencia: Evidencia[]; Certificado: Certificado[]; ArchivosVencimiento: ArchivosVencimiento[]; } export interface Revisiones { id: string; fecha: Date; equipoId?: string[]; equipo?: Equipo[]; createAt: Date; updateAt: Date; }
