import { Skeleton } from 'ui' import { Admonition } from 'ui-patterns/admonition' import { OrganizationCard } from './OrganizationCard' import { useOrganizationsQuery } from '@/data/organizations/organizations-query' export const OrgNotFound = ({ slug }: { slug?: string }) => { const { data: organizations, isSuccess: isOrganizationsSuccess, isPending: isOrganizationsLoading, isError: isOrganizationsError, error: organizationsError, } = useOrganizationsQuery() return ( <> {slug !== '_' && ( {slug ? ( <> The organization {slug}{' '} ) : ( <>This organization )} does not exist or you do not have permission to access to it. Contact the the owner if you believe this is a mistake. } /> )}

Select a different organization to create your new project in

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