company.id)}
strategy={verticalListSortingStrategy}
>
{orderedCompanies.map((company) => (
))}
{orderedCompanies.length === 0 ? (
// "No companies" is a claim about the account. After a failed
// list request it is one we cannot make, and this menu is the
// only place the customer can act on it — say what happened and
// offer the way back.
companyListUnavailable ? (
<>
Couldn't load organizations {
// Keep the menu open so the result of the retry is visible.
event.preventDefault();
void retryCompanies();
}}
>
Try again
>
) : (
No organizations
)
) : null}