import { Badge } from '@/components/ui/badge' import { Button } from '@/components/ui/button' import { Card } from '@/components/ui/card' import { Label } from '@/components/ui/label' import { Download } from '@phosphor-icons/react' interface InstallSectionProps { isInstalled: boolean isInstallable: boolean onInstall: () => void copy: { title: string description: string label: string status: { installed: string available: string notAvailable: string } badge: { installed: string notAvailable: string } action: { install: string } } } export function InstallSection({ isInstalled, isInstallable, onInstall, copy }: InstallSectionProps) { const statusText = isInstalled ? copy.status.installed : isInstallable ? copy.status.available : copy.status.notAvailable return (

{copy.title}

{copy.description}

{statusText}

{isInstalled && {copy.badge.installed}} {isInstallable && !isInstalled && ( )} {!isInstallable && !isInstalled && ( {copy.badge.notAvailable} )}
) }