import { BadgeCheck } from 'lucide-react' import Link from 'next/link' import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject' import { Badge, cn } from 'ui' import ShimmeringLoader from 'ui-patterns/ShimmeringLoader' import { IntegrationDefinition } from './Integrations.constants' type IntegrationCardProps = IntegrationDefinition & { isInstalled?: boolean } const INTEGRATION_CARD_STYLE = cn( 'w-full h-full pl-5 pr-6 py-3 bg-surface-100 hover:bg-surface-200 hover:border-strong', 'border border-border gap-3 rounded-md inline-flex ease-out duration-200 transition-all' ) export const IntegrationLoadingCard = () => { return (
) } export const IntegrationCard = ({ id, status, name, icon, description, isInstalled, }: IntegrationCardProps) => { const { data: project } = useSelectedProjectQuery() return (
{icon()}

{name}

{status && ( {status} )}

{description}

Official {isInstalled && (
Installed
)}
) }