{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "podcast54",
  "title": "Listening Path Builder",
  "description": "An entry point for a back catalogue: three questions score the listening paths, and the winner is handed over as an ordered run of three episodes with cover art, numbers, and a total runtime added up from the episodes themselves.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "questionnaire",
    "button"
  ],
  "files": [
    {
      "path": "registry/podcast54/podcast54.tsx",
      "content": "\"use client\";\n\nimport Link from \"next/link\";\nimport { type FormEvent, useState } from \"react\";\nimport { Badge6 } from \"@/components/beste/component/badge6\";\nimport { Button1 } from \"@/components/beste/component/button1\";\nimport {\n  Questionnaire,\n  QuestionnaireActions,\n  QuestionnaireChoice,\n  QuestionnaireChoiceDescription,\n  QuestionnaireChoices,\n  QuestionnaireDescription,\n  QuestionnaireError,\n  QuestionnaireItem,\n  QuestionnaireNext,\n  QuestionnairePrevious,\n  QuestionnaireProgress,\n  QuestionnaireSubmit,\n  QuestionnaireTitle,\n} from \"@/components/ui/questionnaire\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Badge {\n  label: string;\n}\n\ninterface ActionButton {\n  label: string;\n  href: string;\n}\n\ninterface CoverImage {\n  src: string;\n  alt: string;\n}\n\ninterface Episode {\n  /** Printed in the index chip, e.g. the episode number */\n  number: string;\n  title: string;\n  /** Runtime in whole minutes. Summed into the path's total. */\n  minutes: number;\n  note: string;\n  image: CoverImage;\n}\n\ninterface Path {\n  title: string;\n  summary: string;\n  /** Matched against the traits the answers ask for */\n  traits?: string[];\n  episodes?: Episode[];\n  button?: ActionButton;\n}\n\ninterface PathChoice {\n  value: string;\n  label: string;\n  description?: string;\n  /** Traits this answer asks for. A path scores one point per trait it has. */\n  traits?: string[];\n}\n\ninterface PathQuestion {\n  /** Form field name. Must be unique across the flow. */\n  name: string;\n  title: string;\n  description?: string;\n  choices?: PathChoice[];\n  /** Renders the choices as checkboxes instead of radios */\n  multiple?: boolean;\n}\n\ninterface Podcast54Labels {\n  previous?: string;\n  next?: string;\n  submit?: string;\n  restart?: string;\n  pathTitle?: string;\n  totalLabel?: string;\n  /** Printed in front of each episode number */\n  episodeLabel?: string;\n  hour?: string;\n  minute?: string;\n}\n\ninterface Podcast54Props {\n  badge?: Badge;\n  /** Short line beside the eyebrow, across the hairline divider */\n  meta?: string;\n  heading?: string;\n  description?: string;\n  questions?: PathQuestion[];\n  /** Prints a scoped shortcut on every choice and binds it while the question is active */\n  shortcuts?: \"letters\" | \"numbers\";\n  /** Scored against the answers; the highest score wins, ties go to the first. */\n  paths?: Path[];\n  /** Shown beside the questions, before a path is chosen */\n  image?: CoverImage;\n  caption?: string;\n  /** Two bordered cells under the standing photograph */\n  stats?: { title: string; value: string }[];\n  labels?: Podcast54Labels;\n  className?: string;\n}\n\n/** \"1 hr 48 min\", without a locale API that can drift between server and client. */\nfunction formatMinutes(total: number, hour: string, minute: string) {\n  const hours = Math.floor(total / 60);\n  const rest = total % 60;\n  if (hours === 0) return `${rest} ${minute}`;\n  if (rest === 0) return `${hours} ${hour}`;\n  return `${hours} ${hour} ${rest} ${minute}`;\n}\n\nexport const podcast54Demo: Podcast54Props = {\n  badge: { label: \"Start here\" },\n  meta: \"142 episodes\",\n  heading: \"Nobody starts a show at episode one\",\n  description:\n    \"Three questions and we hand you an order to listen in, not a back catalogue to scroll. Every path is three episodes, chosen so the second makes sense after the first.\",\n  shortcuts: \"numbers\",\n  image: {\n    src: \"https://images.unsplash.com/photo-1785304968591-077766b38d74?q=80&w=3125&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n    alt: \"A condenser microphone in a shock mount with a pop filter\",\n  },\n  caption: \"Recorded in one room, edited lightly, and published on Tuesdays.\",\n  stats: [\n    { title: \"Median length\", value: \"38 min\" },\n    { title: \"Published since\", value: \"2019\" },\n  ],\n  labels: {\n    submit: \"Build my path\",\n    restart: \"Answer again\",\n    pathTitle: \"Your listening path\",\n    totalLabel: \"Three episodes\",\n    episodeLabel: \"Episode\",\n    hour: \"hr\",\n    minute: \"min\",\n  },\n  questions: [\n    {\n      name: \"reason\",\n      title: \"Why are you here?\",\n      description: \"Somebody sent you a link, or you went looking. Both are fine.\",\n      choices: [\n        {\n          value: \"craft\",\n          label: \"I want to get better at the work\",\n          description: \"Process, tools, and the parts that go wrong.\",\n          traits: [\"craft\"],\n        },\n        {\n          value: \"people\",\n          label: \"I like hearing how people think\",\n          description: \"Long conversations that wander and come back.\",\n          traits: [\"people\"],\n        },\n        {\n          value: \"industry\",\n          label: \"I want to know where this is going\",\n          description: \"Money, platforms, and what is quietly changing.\",\n          traits: [\"industry\"],\n        },\n      ],\n    },\n    {\n      name: \"time\",\n      title: \"How long is your commute?\",\n      choices: [\n        { value: \"short\", label: \"Under half an hour\", traits: [\"short\"] },\n        { value: \"long\", label: \"Long enough for a proper one\", traits: [\"long\"] },\n      ],\n    },\n    {\n      name: \"tone\",\n      title: \"What do you want it to feel like?\",\n      choices: [\n        { value: \"practical\", label: \"Useful on Monday morning\", traits: [\"craft\", \"short\"] },\n        { value: \"argument\", label: \"A good argument\", traits: [\"industry\", \"long\"] },\n        { value: \"company\", label: \"Company, mostly\", traits: [\"people\", \"long\"] },\n      ],\n    },\n  ],\n  paths: [\n    {\n      title: \"The one about doing the work\",\n      summary:\n        \"Three episodes on process, in the order that makes the third one land. Start on a Monday and you can use most of it that week.\",\n      traits: [\"craft\", \"short\"],\n      episodes: [\n        {\n          number: \"31\",\n          title: \"The brief nobody reads\",\n          minutes: 34,\n          note: \"Why the document everyone signs is the one nobody opens again.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1590602847861-f357a9332bbc?w=800&h=600&fit=crop\",\n            alt: \"A dynamic microphone on a boom arm against a dark backdrop\",\n          },\n        },\n        {\n          number: \"58\",\n          title: \"Estimating in public\",\n          minutes: 41,\n          note: \"Two studios show their numbers and defend them out loud.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1478737270239-2f02b77fc618?w=800&h=600&fit=crop\",\n            alt: \"A condenser microphone in a shock mount with a pop filter\",\n          },\n        },\n        {\n          number: \"97\",\n          title: \"The handover problem\",\n          minutes: 29,\n          note: \"What happens to good work six months after it ships.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1487215078519-e21cc028cb29?w=800&h=600&fit=crop\",\n            alt: \"Over-ear headphones on a black surface\",\n          },\n        },\n      ],\n      button: { label: \"Start with episode 31\", href: \"https://beste.co\" },\n    },\n    {\n      title: \"The one about the industry\",\n      summary:\n        \"Three of the arguments people still email us about, arranged so you hear the case before the rebuttal.\",\n      traits: [\"industry\", \"long\"],\n      episodes: [\n        {\n          number: \"44\",\n          title: \"Who actually pays for this\",\n          minutes: 52,\n          note: \"Following the money from the brief to the invoice and back.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1478737270239-2f02b77fc618?w=800&h=600&fit=crop\",\n            alt: \"A condenser microphone in a shock mount with a pop filter\",\n          },\n        },\n        {\n          number: \"72\",\n          title: \"The platform tax\",\n          minutes: 64,\n          note: \"What it costs to build on somebody else's floor.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?w=800&h=600&fit=crop\",\n            alt: \"A studio control room with a mixing console and guitars on the wall\",\n          },\n        },\n        {\n          number: \"118\",\n          title: \"Nothing is niche anymore\",\n          minutes: 47,\n          note: \"An hour on what happens when every audience is addressable.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1590602847861-f357a9332bbc?w=800&h=600&fit=crop\",\n            alt: \"A dynamic microphone on a boom arm against a dark backdrop\",\n          },\n        },\n      ],\n      button: { label: \"Start with episode 44\", href: \"https://beste.co\" },\n    },\n    {\n      title: \"The one for company\",\n      summary:\n        \"Long conversations that go somewhere unplanned. Nothing here is useful on Monday, which is rather the point.\",\n      traits: [\"people\", \"long\"],\n      episodes: [\n        {\n          number: \"12\",\n          title: \"Two hours with a sign painter\",\n          minutes: 96,\n          note: \"Forty years of lettering by hand, and one strong opinion about vinyl.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1487215078519-e21cc028cb29?w=800&h=600&fit=crop\",\n            alt: \"Over-ear headphones on a black surface\",\n          },\n        },\n        {\n          number: \"65\",\n          title: \"The archivist\",\n          minutes: 71,\n          note: \"What gets kept, what gets thrown away, and who decides.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1590602847861-f357a9332bbc?w=800&h=600&fit=crop\",\n            alt: \"A dynamic microphone on a boom arm against a dark backdrop\",\n          },\n        },\n        {\n          number: \"103\",\n          title: \"Leaving the industry\",\n          minutes: 58,\n          note: \"Three people who stopped, and what they do on Tuesdays now.\",\n          image: {\n            src: \"https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?w=800&h=600&fit=crop\",\n            alt: \"A studio control room with a mixing console and guitars on the wall\",\n          },\n        },\n      ],\n      button: { label: \"Start with episode 12\", href: \"https://beste.co\" },\n    },\n  ],\n};\n\nexport function Podcast54({\n  badge,\n  meta,\n  heading,\n  description,\n  questions = [],\n  shortcuts,\n  paths = [],\n  image,\n  caption,\n  stats = [],\n  labels = {},\n  className,\n}: Podcast54Props) {\n  const {\n    previous: previousLabel,\n    next: nextLabel,\n    submit: submitLabel,\n    restart: restartLabel,\n    pathTitle,\n    totalLabel,\n    episodeLabel,\n    hour,\n    minute,\n  } = labels;\n\n  const [path, setPath] = useState<Path | null>(null);\n\n  const handleSubmit = (event: FormEvent<HTMLFormElement>) => {\n    event.preventDefault();\n    const data = new FormData(event.currentTarget);\n\n    const wanted: string[] = [];\n    for (const question of questions) {\n      for (const entry of data.getAll(question.name)) {\n        const choice = question.choices?.find((option) => option.value === String(entry));\n        if (choice) wanted.push(...(choice.traits ?? []));\n      }\n    }\n\n    let best: Path | undefined;\n    let bestScore = -1;\n    for (const candidate of paths) {\n      const score = wanted.filter((trait) => candidate.traits?.includes(trait)).length;\n      if (score > bestScore) {\n        best = candidate;\n        bestScore = score;\n      }\n    }\n\n    if (best) setPath(best);\n  };\n\n  const restart = () => setPath(null);\n\n  const total = (path?.episodes ?? []).reduce((sum, episode) => sum + episode.minutes, 0);\n\n  return (\n    <section className={cn(\"w-full py-16 md:py-24\", className)}>\n      <div className=\"mx-auto max-w-6xl px-4 md:px-6\">\n        <div className=\"flex flex-wrap items-center gap-5\">\n          {badge && <Badge6 label={badge.label} />}\n          {badge && meta && <span className=\"h-9 w-px bg-border\" />}\n          {meta && (\n            <span className=\"text-base font-bold uppercase tracking-widest text-muted-foreground\">\n              {meta}\n            </span>\n          )}\n        </div>\n\n        <div className=\"mt-6 border-b\" />\n\n        {heading && (\n          <h2 className=\"mt-10 max-w-3xl text-balance text-3xl font-bold leading-[1.05] tracking-tight text-foreground md:text-5xl\">\n            {heading}\n          </h2>\n        )}\n        {description && (\n          <p className=\"mt-6 max-w-2xl text-lg text-muted-foreground md:text-xl\">{description}</p>\n        )}\n\n        {path ? (\n          <div className=\"mt-12\">\n            <div className=\"flex flex-wrap items-end justify-between gap-6 border-b pb-8\">\n              <div className=\"max-w-2xl\">\n                {pathTitle && (\n                  <p className=\"text-base font-bold uppercase tracking-widest text-muted-foreground\">\n                    {pathTitle}\n                  </p>\n                )}\n                <p className=\"mt-4 text-2xl font-bold tracking-tight text-foreground md:text-3xl\">\n                  {path.title}\n                </p>\n                <p className=\"mt-4 text-lg text-muted-foreground\">{path.summary}</p>\n              </div>\n              <p className=\"text-lg font-bold tracking-tight text-foreground\">\n                {totalLabel ?? \"Three episodes\"},{\" \"}\n                <span className=\"tabular-nums text-primary\">\n                  {formatMinutes(total, hour ?? \"hr\", minute ?? \"min\")}\n                </span>\n              </p>\n            </div>\n\n            <div className=\"mt-8 grid gap-6 md:grid-cols-3\">\n              {path.episodes?.map((episode, index) => (\n                <div key={index} className=\"overflow-hidden rounded-md border\">\n                  <div className=\"relative h-44 bg-muted\">\n                    <img\n                      className=\"absolute inset-0 size-full object-cover\"\n                      src={episode.image.src}\n                      alt={episode.image.alt}\n                    />\n                    <span className=\"absolute left-4 top-4 flex size-9 items-center justify-center rounded-md bg-primary text-base font-bold tabular-nums text-primary-foreground\">\n                      {index + 1}\n                    </span>\n                  </div>\n                  <div className=\"p-5\">\n                    <p className=\"text-base font-bold uppercase tracking-widest text-muted-foreground\">\n                      {episodeLabel ?? \"Episode\"} {episode.number}\n                    </p>\n                    <p className=\"mt-3 text-lg font-bold tracking-tight text-foreground\">\n                      {episode.title}\n                    </p>\n                    <p className=\"mt-2 text-base text-muted-foreground\">{episode.note}</p>\n                    <p className=\"mt-4 text-base font-bold tabular-nums text-foreground\">\n                      {formatMinutes(episode.minutes, hour ?? \"hr\", minute ?? \"min\")}\n                    </p>\n                  </div>\n                </div>\n              ))}\n            </div>\n\n            <div className=\"mt-8 flex flex-wrap items-center gap-5\">\n              {path.button && (\n                <Button1 asChild label={path.button.label}>\n                  <Link href={path.button.href} />\n                </Button1>\n              )}\n              <button\n                type=\"button\"\n                onClick={restart}\n                className=\"cursor-pointer text-lg font-bold text-foreground underline underline-offset-4 hover:text-primary\"\n              >\n                {restartLabel ?? \"Answer again\"}\n              </button>\n            </div>\n          </div>\n        ) : (\n          <div className=\"mt-12 grid gap-8 lg:grid-cols-[1fr_1.1fr] lg:gap-12\">\n            <div>\n              <div className=\"relative h-72 overflow-hidden rounded-md border bg-muted lg:h-80\">\n                {image && (\n                  <img\n                    className=\"absolute inset-0 size-full object-cover\"\n                    src={image.src}\n                    alt={image.alt}\n                  />\n                )}\n              </div>\n              {caption && <p className=\"mt-4 text-base text-muted-foreground\">{caption}</p>}\n\n              {stats.length > 0 && (\n                <div className=\"mt-6 grid gap-4 sm:grid-cols-2\">\n                  {stats.map((stat, index) => (\n                    <div key={index} className=\"rounded-md border bg-muted p-5\">\n                      <p className=\"text-base font-bold uppercase tracking-widest text-muted-foreground\">\n                        {stat.title}\n                      </p>\n                      <p className=\"mt-2 text-2xl font-bold tracking-tight text-foreground\">\n                        {stat.value}\n                      </p>\n                    </div>\n                  ))}\n                </div>\n              )}\n            </div>\n\n            <div>\n              <Questionnaire\n                defaultItem={questions[0]?.name}\n                shortcuts={shortcuts}\n                onSubmit={handleSubmit}\n                className=\"gap-6\"\n              >\n                {questions.length > 0 && <QuestionnaireProgress className=\"text-base\" />}\n\n                {questions.map((question, index) => (\n                  <QuestionnaireItem\n                    key={index}\n                    name={question.name}\n                    required={!question.multiple}\n                    multiple={question.multiple}\n                  >\n                    <QuestionnaireTitle className=\"text-xl font-bold tracking-tight text-foreground md:text-2xl\">\n                      {question.title}\n                    </QuestionnaireTitle>\n                    {question.description && (\n                      <QuestionnaireDescription className=\"text-base text-muted-foreground md:text-lg\">\n                        {question.description}\n                      </QuestionnaireDescription>\n                    )}\n                    <QuestionnaireChoices>\n                      {question.choices?.map((choice, choiceIndex) => (\n                        <QuestionnaireChoice\n                          key={choiceIndex}\n                          value={choice.value}\n                          className=\"rounded-md p-4 text-base data-checked:border-primary\"\n                        >\n                          <span className=\"font-bold text-foreground\">{choice.label}</span>\n                          {choice.description && (\n                            <QuestionnaireChoiceDescription className=\"text-base\">\n                              {choice.description}\n                            </QuestionnaireChoiceDescription>\n                          )}\n                        </QuestionnaireChoice>\n                      ))}\n                    </QuestionnaireChoices>\n                    <QuestionnaireError className=\"text-base\" />\n                  </QuestionnaireItem>\n                ))}\n\n                <QuestionnaireActions>\n                  <QuestionnairePrevious className=\"cursor-pointer rounded-md text-base\">\n                    {previousLabel}\n                  </QuestionnairePrevious>\n                  <QuestionnaireNext className=\"cursor-pointer rounded-md text-base\">\n                    {nextLabel}\n                  </QuestionnaireNext>\n                  <QuestionnaireSubmit className=\"cursor-pointer rounded-md text-base\">\n                    {submitLabel}\n                  </QuestionnaireSubmit>\n                </QuestionnaireActions>\n              </Questionnaire>\n            </div>\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/podcast54.tsx"
    },
    {
      "path": "registry-components/badge6/badge6.tsx",
      "content": "import { cn } from \"@/lib/utils\";\n\ntype Tone = \"primary\" | \"foreground\" | \"muted\";\ntype Badge6Orientation = \"horizontal\" | \"vertical\";\n\ninterface Badge6Props {\n  /** Eyebrow label (rendered uppercase) */\n  label: string;\n  /** Accent square color */\n  tone?: Tone;\n  /** Layout: square beside the label (default) or stacked above it */\n  orientation?: Badge6Orientation;\n  /** Override the label classes, e.g. \"text-background/70\" on dark surfaces */\n  labelClassName?: string;\n  /** Additional classes merged onto the root */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, string> = {\n  primary: \"bg-primary\",\n  foreground: \"bg-foreground\",\n  muted: \"bg-muted-foreground\",\n};\n\nexport const badge6Demo: Badge6Props = {\n  label: \"About Us\",\n};\n\nexport function Badge6({\n  label,\n  tone = \"primary\",\n  orientation = \"horizontal\",\n  labelClassName,\n  className,\n}: Badge6Props) {\n  const vertical = orientation === \"vertical\";\n\n  return (\n    <div className={cn(\"flex\", vertical ? \"flex-col gap-3\" : \"items-center gap-2.5\", className)}>\n      <span className={cn(\"size-2.5 shrink-0\", toneStyles[tone])} />\n      <span\n        className={cn(\n          \"text-base font-bold uppercase tracking-widest text-muted-foreground\",\n          vertical && \"leading-tight\",\n          labelClassName\n        )}\n      >\n        {label}\n      </span>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/badge6.tsx"
    },
    {
      "path": "registry-components/button1/button1.tsx",
      "content": "\"use client\";\n\nimport { ArrowRight, type LucideIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\ntype Tone = \"dark\" | \"primary\";\n\ninterface Button1Props {\n  /** Button label */\n  label: string;\n  /**\n   * Compose the rendered element shadcn-style (radix asChild):\n   * `<Button1 asChild label=\"Read More\"><Link href=\"/x\" /></Button1>`\n   * The child element receives the pill content (label + seal) as its\n   * children, so pass it without children of its own.\n   */\n  asChild?: boolean;\n  /** The element to render when `asChild` is set (e.g. your router's Link) */\n  children?: React.ReactElement;\n  /**\n   * Fallback link: renders a plain `<a>`. Prefer `asChild` with your\n   * framework's Link component for client-side navigation.\n   */\n  href?: string;\n  /** Trailing seal icon (defaults to ArrowRight) */\n  icon?: LucideIcon;\n  /** Surface tone: dark pill (default) or primary pill (for dark backgrounds) */\n  tone?: Tone;\n  /** Fully round the pill and seal (shorthand for className=\"rounded-full\") */\n  roundedFull?: boolean;\n  /** Click handler (used when there is no href and no asChild) */\n  onClick?: React.MouseEventHandler<HTMLButtonElement>;\n  /** Additional classes merged onto the button */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, { pill: string; seal: string }> = {\n  dark: {\n    pill: \"bg-foreground text-background hover:bg-foreground/90\",\n    seal: \"bg-primary text-primary-foreground\",\n  },\n  primary: {\n    pill: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n    seal: \"bg-primary-foreground text-primary\",\n  },\n};\n\nexport const button1Demo: Button1Props = {\n  label: \"Read More\",\n};\n\nexport function Button1({\n  label,\n  asChild = false,\n  children,\n  href,\n  icon: Icon = ArrowRight,\n  tone = \"dark\",\n  roundedFull = false,\n  onClick,\n  className,\n}: Button1Props) {\n  const styles = toneStyles[tone];\n\n  // Mirror the pill's border radius onto the seal so the arrow chip always\n  // matches the pill. Priority: an explicit `rounded-*` in className wins,\n  // then the `roundedFull` shorthand, otherwise the default rounded-md.\n  const explicitRadius = className?.match(/\\brounded-(?:none|sm|md|lg|xl|2xl|3xl|full)\\b/)?.[0];\n  const sealRadius = explicitRadius ?? (roundedFull ? \"rounded-full\" : \"rounded-md\");\n\n  const inner = (\n    <>\n      {label}\n      <span\n        className={cn(\n          \"flex size-8 items-center justify-center transition-transform motion-safe:group-hover/button1:translate-x-0.5\",\n          sealRadius,\n          styles.seal\n        )}\n      >\n        <Icon className=\"size-4\" />\n      </span>\n    </>\n  );\n\n  const classes = cn(\n    // justify-between keeps the label left and the seal pinned right when the\n    // pill is full-width; at w-fit there's no free space so they stay together.\n    \"group/button1 h-auto w-fit justify-between gap-3 rounded-md py-3 pl-6 pr-3 text-base font-bold transition-colors\",\n    roundedFull && \"rounded-full\",\n    styles.pill,\n    className\n  );\n\n  if (asChild && React.isValidElement(children)) {\n    // The consumer's element (e.g. next/link's <Link href>) becomes the\n    // rendered element; the pill content is injected as its children.\n    return (\n      <Button asChild className={classes}>\n        {React.cloneElement(children, undefined, inner)}\n      </Button>\n    );\n  }\n\n  if (href) {\n    return (\n      <Button asChild className={classes}>\n        <a href={href}>{inner}</a>\n      </Button>\n    );\n  }\n\n  return (\n    <Button type=\"button\" className={classes} onClick={onClick}>\n      {inner}\n    </Button>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/button1.tsx"
    }
  ],
  "type": "registry:block"
}