{hasManageWorkspacePermissions && (
<>
{
// This is to prevent the Menu component to take focus away from the input
// https://github.com/radix-ui/primitives/issues/1175
e.stopPropagation();
}}
>
{
return notEmptyValidator(value).message;
}}
onBlur={(value: string) => {
WorkspaceNameChange(value, workspace.id);
}}
placeholder="Workspace name"
savingState={
isSavingWorkspaceInfo
? SavingState.STARTED
: SavingState.NOT_STARTED
}
underline
/>
>
)}
{enableImportExport &&
hasCreateNewApplicationPermission && (
)}
{hasManageWorkspacePermissions &&
canInviteToWorkspace && (
)}
{canInviteToWorkspace && (
)}
{applications.length === 0 && canDeleteWorkspace && (
)}