{isUnderRepair ? (
) : (
)}
>
}
/>
{!canEdit && (
This asset is in "{state}", so its workflow has finished. It can't be assigned, edited,
repaired, returned or reported lost any more.
)}
{notice && (
{notice.text}
)}
{/* ---------- Left: state + record info ---------- */}
{state ? : null}
{/* After a return the old assignee stays on the record; it's not current. */}
{isAssigned && employee ? employee : null}
{history.length ? (
) : (
)}
{meta.length > 0 && (
{meta.map((m) => (
{formatMeta(m.value)}
))}
)}
{/* ---------- Right: asset + assignment fields ---------- */}
{hasValues(assignmentFields) ? (
) : (
)}
{hasValues(reassignmentFields) && (
)}
{hasValues(returnFields) && (
)}
{hasValues(repairFields) && (
)}
{hasValues(lostFields) && (
)}
{activity && (
setActivity(null)}
onDone={handleDone}
/>
)}
>
)
}
function DetailFields({ fields }) {
return (
{fields.map((f) => (
- {displayLabel(f.label)}
-
))}
)
}