--- // SkillPackage — the four-file skill-package picker (SKILL.md, references/, // scripts/, assets/). Buttons carry the `data-skill-file` hook asserted by // `scripts/verify.mjs`. // // Static shell: the initial file is marked active and selected. The block is // paired with a `
` detail panel by the parent page; this component // renders only the picker. type Localized = { en: string; pt: string }; interface PackageFile { id: 'skill' | 'references' | 'scripts' | 'assets' | string; /** Path rendered inside ``, e.g. "SKILL.md". */ path: string; /** Helper copy under the path. */ small: string | Localized; } interface Props { files: PackageFile[]; initial?: string; packageLabel?: string | Localized; } const { files, initial = files[0]?.id ?? 'skill', packageLabel = 'SKILL PACKAGE' } = Astro.props; ---
{ typeof packageLabel === 'string' ? ( packageLabel ) : ( <> {packageLabel.en} ) } { files.map((file) => ( )) }