import { IntegrationCard, IntegrationLoadingCard } from './IntegrationCard' import { useInstalledIntegrations } from './useInstalledIntegrations' import AlertError from '@/components/ui/AlertError' export const InstalledIntegrations = () => { const { installedIntegrations, error, isLoading, isSuccess, isError } = useInstalledIntegrations() return (

Installed integrations

{isLoading && new Array(3) .fill(0) .map((_, idx) => )} {isError && ( )} {isSuccess && ( <> {installedIntegrations.length === 0 ? (
{/* [Joshen] Not high priority imo - very low chance this state will be seen cause Vault is always installed */} {/* Some placeholder image when no integrations are installed */}

No integrations installed yet

) : ( installedIntegrations.map((i) => ) )} )}
) }