{!canManageLogistics ? (
) : (
)}
{canManageLogistics ? (
{cargoLines.length === 0 ? (
No cargo reserved.
) : (
{cargoLines.map((line, index) => (
{originStock.length > 0 ? (
updateCargo(index, { resourceId: v })}
searchPlaceholder="Search resources..."
emptyMessage="Nothing stored at this origin."
options={originStock.map((s) => ({
value: String(s.resourceId),
label: s.resourceName,
hint: `${s.amount.toLocaleString()} available`,
}))}
/>
) : (
Select an origin to choose resources.
)}
updateCargo(index, { amount: e.target.value })}
/>
))}
)}
) : (
Disabled until logistics access is granted.
)}
{canManageLogistics ? (
) : (
)}
setExpiresAt(e.target.value)}
/>
{error &&
{error}
}