( workspaceState: Pick<WorkspaceOwnershipState, 'workspaceMode' | 'organizationId'> )
| 64 | } |
| 65 | |
| 66 | export function isOrganizationWorkspace( |
| 67 | workspaceState: Pick<WorkspaceOwnershipState, 'workspaceMode' | 'organizationId'> |
| 68 | ): boolean { |
| 69 | return ( |
| 70 | workspaceState.workspaceMode === WORKSPACE_MODE.ORGANIZATION && |
| 71 | workspaceState.organizationId !== null && |
| 72 | workspaceState.organizationId.length > 0 |
| 73 | ) |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Computes whether new members can be invited to the given workspace |
no outgoing calls
no test coverage detected