|
|
@@ -49,6 +49,16 @@ export default function RecordsCard({
|
|
|
return formatDate(dateString)
|
|
|
}
|
|
|
|
|
|
+ const getReportTypeLabel = () => {
|
|
|
+ return record.chatType === "PSYCHOLOGICAL" ? "Reporte Psicológico" : "Reporte Médico"
|
|
|
+ }
|
|
|
+
|
|
|
+ const getReportTypeColor = () => {
|
|
|
+ return record.chatType === "PSYCHOLOGICAL"
|
|
|
+ ? "bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-300"
|
|
|
+ : "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300"
|
|
|
+ }
|
|
|
+
|
|
|
return (
|
|
|
<Card className="group hover:shadow-lg transition-all duration-300 border overflow-hidden">
|
|
|
<CardHeader className="pb-4">
|
|
|
@@ -61,12 +71,17 @@ export default function RecordsCard({
|
|
|
<CardTitle className="text-xl font-bold text-foreground">
|
|
|
{userRole === "PATIENT" ? "Mi Reporte" : `Reporte #${record.id.slice(-8)}`}
|
|
|
</CardTitle>
|
|
|
- {userRole !== "PATIENT" && (
|
|
|
- <div className="flex items-center text-xs text-muted-foreground mt-1">
|
|
|
- <Tag className="w-3 h-3 mr-1" />
|
|
|
- {record.id.slice(0, 8)}...
|
|
|
- </div>
|
|
|
- )}
|
|
|
+ <div className="flex items-center gap-2 mt-1">
|
|
|
+ {userRole !== "PATIENT" && (
|
|
|
+ <div className="flex items-center text-xs text-muted-foreground">
|
|
|
+ <Tag className="w-3 h-3 mr-1" />
|
|
|
+ {record.id.slice(0, 8)}...
|
|
|
+ </div>
|
|
|
+ )}
|
|
|
+ <span className={`text-xs font-medium px-2 py-1 rounded-full ${getReportTypeColor()}`}>
|
|
|
+ {getReportTypeLabel()}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div className="flex space-x-1">
|