+ {(row.original.submitted_content?.files || []).map((item: any, index: number) => {
+ // Files may arrive as bare strings (report shape) or as
+ // { id, name, path, submitted_at, submitted_by } objects
+ // (participant-list shape). Handle both.
+ const href = typeof item === 'string' ? item : item.path;
+ const label = typeof item === 'string' ? item : (item.name || item.path);
+ return (
+
+ {label}
+
+ );
+ })}
+
+ >
+ ),
accessorKey: "submitted_content", header: "Submitted items(s)", enableSorting: false, enableColumnFilter: false
},
+ {
+ cell: ({ row }) => (
+