Switch workspace
company.id)}
strategy={verticalListSortingStrategy}
>
{orderedCompanies.map((company) => (
))}
{orderedCompanies.length === 0 ? (
No workspaces
) : null}
Add company...
{
if (isEditingOrder) {
event.preventDefault();
return;
}
closeNavigationChrome();
}}
>
{selectedCompany ? `Invite people to ${selectedCompany.name}` : "Invite people"}
{
if (isEditingOrder) {
event.preventDefault();
return;
}
closeNavigationChrome();
}}
>
Company settings
{session?.session ? (
<>
signOutMutation.mutate()}
disabled={isEditingOrder || signOutMutation.isPending}
>
{signOutMutation.isPending ? "Signing out..." : "Sign out"}
>
) : null}