import type { MarketplacePlugin } from "#/api/plugins-service"; import { CirclePlusCheckToggle } from "#/components/shared/buttons/circle-plus-check-toggle"; import { I18nKey } from "#/i18n/declaration"; import { cn } from "#/utils/utils"; import { extensionModuleCardPillClassName } from "#/utils/extension-module-card-classes"; interface PluginPickerCardProps { plugin: MarketplacePlugin; isSelected: boolean; isDisabled?: boolean; onToggle: (selected: boolean) => void; } /** A single selectable plugin in the picker catalog (display + attach toggle). */ export function PluginPickerCard({ plugin, isSelected, isDisabled = false, onToggle, }: PluginPickerCardProps) { return (

{plugin.name}

{plugin.source}

{plugin.description ? (

{plugin.description}

) : null} {plugin.repo_path || plugin.ref ? (
{plugin.repo_path ? ( {plugin.repo_path} ) : null} {plugin.ref ? ( @{plugin.ref} ) : null}
) : null}
); }