{isLoading ? (
) : (
<>
Seleziona utente:
{
for (const allegato of storageIds) {
add({
storageId: allegato,
userId: user.id,
from_admin: true,
});
}
}}
users={users || []}
/>
{data?.map((allegato, i) => (
File: {allegato.originalName}
Visibile a:
{allegato.users.length === 0 ? (
Nessuno
) : (
{allegato.users.map((user) => (
-
))}
)}
))}
>
)}