import AlertError from 'components/ui/AlertError' import { useOrganizationsQuery } from 'data/organizations/organizations-query' import { Skeleton } from 'ui' import { Admonition } from 'ui-patterns/admonition' import { OrganizationCard } from './OrganizationCard' export const OrgNotFound = ({ slug }: { slug?: string }) => { const { data: organizations, isSuccess: isOrganizationsSuccess, isLoading: isOrganizationsLoading, isError: isOrganizationsError, error: organizationsError, } = useOrganizationsQuery() return ( <> {slug !== '_' && ( The selected organization does not exist or you don't have permission to access it.{' '} {slug ? ( <> Contact the owner or administrator to create a new project in the {slug}{' '} organization. ) : ( <>Contact the owner or administrator to create a new project. )} )}

Select an organization to create your new project in

{isOrganizationsLoading && ( <> )} {isOrganizationsError && ( )} {isOrganizationsSuccess && organizations?.map((org) => ( ))}
) }