-
+ {canSeeReports && (
+
+
-
- {Object.entries(REPORT_MAP).map(([key, report]) => (
-
- cn(
- "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",
- isActive && "bg-gray-100 font-semibold"
- )
- }
- >
- {report.title}
-
- ))}
+
+ {Object.entries(REPORT_MAP).map(([key, report]) => (
+
+ cn(
+ "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",
+ isActive && "bg-gray-100 font-semibold"
+ )
+ }
+ >
+ {report.title}
+
+ ))}
+
-
-
+ )}
-
- cn("w-full text-left px-3 py-2 text-sm font-medium hover:bg-indigo-50 hover:text-indigo-700 rounded-md transition-colors flex items-center gap-2 cursor-pointer", isActive ? "text-indigo-700 bg-indigo-50" : "text-gray-700")}
- >
-
- Manage Datasets
-
-
+ {isAdmin && (
+
+ cn("w-full text-left px-3 py-2 text-sm font-medium hover:bg-indigo-50 hover:text-indigo-700 rounded-md transition-colors flex items-center gap-2 cursor-pointer", isActive ? "text-indigo-700 bg-indigo-50" : "text-gray-700")}
+ >
+
+ Manage Datasets
+
+
+ )}