Switch workspace
{sidebarCompanies.map((company) => {
const isSelected = company.id === selectedCompany?.id;
return (
selectCompany(company)}
className={cn(
"min-w-0 gap-2 py-2",
isSelected && "bg-accent text-accent-foreground",
)}
>
{company.name}
{company.issuePrefix}
{isSelected ? : null}
);
})}
{sidebarCompanies.length === 0 ? (
No workspaces
) : null}
Add company...
{selectedCompany ? `Invite people to ${selectedCompany.name}` : "Invite people"}
Company settings
{session?.session ? (
<>
signOutMutation.mutate()}
disabled={signOutMutation.isPending}
>
{signOutMutation.isPending ? "Signing out..." : "Sign out"}
>
) : null}