import { ExternalLink, Star } from 'lucide-react' import { Switch } from '@/components/ui/switch' interface PluginToggleProps { id: string name: string description: string isEnabled: boolean onToggle: (enabled: boolean) => void featured?: boolean flashCount?: number homepage?: string version?: string disabled?: boolean enabledLabel?: string incompatibleReason?: string } export function PluginToggle({ name, description, isEnabled, onToggle, featured = false, flashCount = 0, homepage, version, disabled = false, enabledLabel = 'Add', incompatibleReason, }: PluginToggleProps) { const isIncompatible = !!incompatibleReason return (
{/* Flash count and homepage links in lower right */}
{version && v{version}}
{flashCount}
{homepage && ( e.stopPropagation()} > )}

{name}

{featured && ( )}

{description}

{isIncompatible && incompatibleReason && (

{incompatibleReason}

)}
) }