import { useState } from 'react' import { Link } from '@tanstack/react-router' import { useTranslation } from 'react-i18next' import { CaretDownIcon, RocketLaunchIcon } from '@phosphor-icons/react/dist/ssr' import { Badge } from '@/components/ui/badge' import { Button } from '@/components/ui/button' import { cn } from '@/lib/utils' import { formatBytes } from '../../lib/format' import { STARTER_STACKS } from '../../lib/templateStacks' import type { ServiceTemplateListItem } from '../../queries/serviceTemplates' import { TemplateLogoTile } from '../TemplateLogoTile' /** TemplateFeaturedStrip is the collapsible hero band of starter kits above the catalog. */ export function TemplateFeaturedStrip({ templates, onSelect, onDeployNow, deployingId, }: { templates: ServiceTemplateListItem[] onSelect: (id: string) => void onDeployNow: (template: ServiceTemplateListItem) => void deployingId?: string }) { const { t } = useTranslation('templates') const [open, setOpen] = useState(true) if (templates.length === 0) return null return (

{t('marketplace.featured.subtitle')}

) }