{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tw-product-card",
  "type": "registry:ui",
  "title": "react-tw/product-card.tsx",
  "description": "Carbon for IBM Products `ProductiveCard` and `ExpressiveCard` as React + Tailwind components, the look and rules of Copied from @purpurabog/ui 2.3.0; the package is the maintained source, this copy is yours to change. Icons from the Carbon Design System (Apache-2.0, © IBM Corp.; see THIRD-PARTY-NOTICES.md in the package).",
  "dependencies": [
    "@purpurabog/ui@^2.3.0"
  ],
  "registryDependencies": [
    "@kanok-ui/core-product-card",
    "@kanok-ui/tw-button",
    "@kanok-ui/tw-i18n",
    "@kanok-ui/tw-icon-button",
    "@kanok-ui/tw-layer",
    "@kanok-ui/tw-menu",
    "@kanok-ui/tw-theme",
    "@kanok-ui/tw-utils"
  ],
  "files": [
    {
      "path": "src/react-tw/product-card.tsx",
      "type": "registry:ui",
      "target": "components/ui/react-tw/product-card.tsx",
      "content": "import type { ComponentProps, MouseEvent, ReactNode, Ref } from 'react';\nimport { ProductCard as ProductCardPrimitive } from '@purpurabog/ui/headless';\nimport {\n    productCardHeader,\n    productCardLayout,\n    type ProductCardClickZone,\n    type ProductCardLayout,\n    type ProductCardMediaPosition,\n    type ProductCardPlacement,\n    type ProductCardPrimaryKind,\n    type ProductCardSecondaryKind,\n    type ProductCardTitleSize,\n    type ProductCardZone,\n} from '../core/product-card.ts';\nimport { Button } from './button.tsx';\nimport { IconButton } from './icon-button.tsx';\nimport { Layer } from './layer.tsx';\nimport { useTranslation } from './lib/i18n.ts';\nimport { cn } from './lib/utils.ts';\nimport { MenuItem, OverflowMenu, type MenuItemProps } from './menu.tsx';\n\n/**\n * Carbon for IBM Products `ProductiveCard` and `ExpressiveCard` as React + Tailwind components, the look and rules of\n * `<ui-productive-card>` / `<ui-expressive-card>` with IBM Products' prop API. Carbon for IBM Products' current\n * (legacy-style) prop-driven cards, for screens that must match IBM product UIs; for new work prefer `Card` (Carbon's\n * parts-based card, the direction of both Carbon and IBM Products' unreleased Card next).\n */\n\nexport type { ProductCardClickZone, ProductCardMediaPosition, ProductCardPlacement, ProductCardPrimaryKind, ProductCardSecondaryKind, ProductCardTitleSize } from '../core/product-card.ts';\n\n/** An action icon (Carbon for IBM Products `actionIcons`): a ghost icon button, a link with `href`. */\nexport interface ProductCardActionIcon {\n    id: string;\n    /** The 16px icon. */\n    icon: ReactNode;\n    /** The button's name and tooltip. */\n    iconDescription: string;\n    onClick?: (event: MouseEvent<HTMLElement>) => void;\n    href?: string;\n}\n\n/** An overflow menu item (Carbon for IBM Products `overflowActions`); other `MenuItem` props (`kind`, `disabled` …) pass on. */\nexport interface ProductCardOverflowAction extends Omit<MenuItemProps, 'label' | 'children'> {\n    id: string;\n    itemText: string;\n}\n\nexport type ProductCardHeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n\n/** The props both cards take: what the card shows (Carbon for IBM Products' `Card`). */\ninterface CardContent {\n    title?: ReactNode;\n    /** The title's element (Carbon `Heading` in its `Section`: an `<h2>` at the top of a page). */\n    headingAs?: ProductCardHeadingTag;\n    /** Text above the title (label-01). */\n    label?: ReactNode;\n    /** Text below the title (label-01). */\n    description?: ReactNode;\n    actionIcons?: readonly ProductCardActionIcon[];\n    /** E.g. an AI label, 16px from the top-end corner. */\n    decorator?: ReactNode;\n    /** Makes the click zone one button (a click, Enter or Space); never while `disabled`. */\n    onClick?: (event: MouseEvent<HTMLButtonElement>) => void;\n    /** Announced as disabled (`aria-disabled`, as Carbon); the click zone then calls no `onClick`. No other change, as Carbon. */\n    disabled?: boolean;\n    primaryButtonText?: string;\n    primaryButtonHref?: string;\n    /** A 16px icon after the primary button's text. */\n    primaryButtonIcon?: ReactNode;\n    primaryButtonDisabled?: boolean;\n    onPrimaryButtonClick?: (event: MouseEvent<HTMLElement>) => void;\n    secondaryButtonText?: string;\n    secondaryButtonHref?: string;\n    secondaryButtonIcon?: ReactNode;\n    secondaryButtonDisabled?: boolean;\n    onSecondaryButtonClick?: (event: MouseEvent<HTMLElement>) => void;\n    lang?: string;\n}\n\ntype DivProps = Omit<ComponentProps<'div'>, 'title' | 'onClick' | 'ref'> & {\n    /** The card's box. */\n    ref?: Ref<HTMLDivElement>;\n};\n\nexport interface ProductiveCardProps extends CardContent, DivProps {\n    /** Which zone `onClick` makes one button: one = the card, two = the header with the body, three = the body. */\n    clickZone?: ProductCardClickZone;\n    /** Where the action icons (or the overflow menu) go. */\n    actionsPlacement?: ProductCardPlacement;\n    /** default: heading-compact-02; large: heading-03. */\n    titleSize?: ProductCardTitleSize;\n    /** Shown in an overflow menu instead of the action icons. */\n    overflowActions?: readonly ProductCardOverflowAction[];\n    /** The overflow menu's name and tooltip (default: the translation's \"Options\"). */\n    overflowAriaLabel?: string;\n    /** At the top the primary button joins the top actions (a ghost sm button, without `href`). */\n    primaryButtonPlacement?: ProductCardPlacement;\n    /** At the top the secondary button joins the top actions, only when there are other top actions (as Carbon). */\n    secondaryButtonPlacement?: ProductCardPlacement;\n}\n\nexport interface ExpressiveCardProps extends CardContent, DivProps {\n    /** An image or video across the top (or at the start), at its own size up to the card's width. */\n    media?: ReactNode;\n    mediaPosition?: ProductCardMediaPosition;\n    /** A pictogram above the title, 16px in. */\n    pictogram?: ReactNode;\n    primaryButtonKind?: ProductCardPrimaryKind;\n    secondaryButtonKind?: ProductCardSecondaryKind;\n}\n\n/** Everything the shared frame draws, resolved per card. */\ninterface CardSettings extends CardContent {\n    productive: boolean;\n    clickZone: ProductCardClickZone;\n    actionsPlacement: ProductCardPlacement;\n    titleSize: ProductCardTitleSize;\n    overflowActions: readonly ProductCardOverflowAction[];\n    overflowAriaLabel?: string;\n    primaryButtonPlacement: ProductCardPlacement;\n    secondaryButtonPlacement: ProductCardPlacement;\n    primaryButtonKind: ProductCardPrimaryKind;\n    secondaryButtonKind: ProductCardSecondaryKind;\n    media?: ReactNode;\n    mediaPosition: ProductCardMediaPosition;\n    pictogram?: ReactNode;\n}\n\ninterface PartProps {\n    card: CardSettings;\n    layout: ProductCardLayout;\n    /** The overflow menu's name. */\n    options: string;\n}\n\n/** .c4p--card__clickable: a pointer, layer-hover-01 under it (110ms with the browser's ease: no easing given). */\nconst ZONE = 'relative cursor-pointer transition-[background-color] duration-(--ui-duration-moderate) ease-[ease] hover:bg-ghost-hover';\n/** The card's own controls sit above the zone's button. */\nconst ABOVE = 'relative z-1';\nconst CAPTION = 'type-caption leading-4!';\n/** Controls put directly in the body sit above the zone's button too (literal classes: Tailwind reads the source). */\nconst BODY_CONTROLS = '[&>:is(a,button,input,select,textarea,[tabindex]):not([data-click-zone])]:relative [&>:is(a,button,input,select,textarea,[tabindex]):not([data-click-zone])]:z-1';\nconst NONE: readonly never[] = [];\n\n/**\n * The zone's button (headless `ClickZone`) over `where`, under its controls; on the card it covers the 1px border too,\n * where Carbon's outline (offset -2px) starts; the ring on :focus, as Carbon (a click shows it too). z-index 1 keeps it\n * over content that is positioned itself (the content under media, as Carbon); the controls (z-index 1, later) stay over it.\n */\nfunction Trigger({ zone, where }: Readonly<{ zone: ProductCardZone | null; where: ProductCardZone }>) {\n    if (zone !== where) return null;\n    return (\n        <ProductCardPrimitive.ClickZone\n            className={cn(\n                'absolute z-1 m-0 cursor-pointer border-0 bg-transparent p-0 font-[inherit] text-inherit outline-[length:var(--ui-focus-width,2px)] [outline-offset:var(--ui-focus-offset,-2px)] outline-transparent outline-solid focus:outline-focus focus:not-focus-visible:outline-[color:var(--ui-pointer-focus,var(--ui-focus))] forced-colors:focus:outline-[Highlight]',\n                where === 'card' ? '-inset-px rounded-[inherit]' : 'inset-0',\n            )}\n        />\n    );\n}\n\n/** The header container's room at the end: for the actions, for the decorator (more beside a large title or a label). */\nfunction containerEnd(decorator: boolean, actions: boolean, largeOrLabel: boolean) {\n    if (decorator && largeOrLabel) return 'w-full pe-12';\n    if (decorator && actions) return 'w-full pe-10';\n    if (decorator) return 'w-full pe-8';\n    return actions ? 'pe-2' : undefined;\n}\n\n/** The action icons, or the overflow menu instead of them (Carbon's menu is in a level-2 `Layer`). */\nfunction Icons({ card, layout, options }: Readonly<PartProps>) {\n    if (layout.overflow) {\n        return (\n            <Layer level={2}>\n                <OverflowMenu size={layout.iconSize} placement={layout.overflowPlacement} label={card.overflowAriaLabel || options} lang={card.lang}>\n                    {card.overflowActions.map(({ id, itemText, ...item }) => (\n                        <MenuItem key={id} {...item} label={itemText} />\n                    ))}\n                </OverflowMenu>\n            </Layer>\n        );\n    }\n    // _card.scss .c4p--card__icon:hover: an expressive card's icons hover in its layer-hover, not the ghost button's\n    const hover = card.productive ? undefined : '[--ui-canvas-hover:var(--ui-ghost-hover)]';\n    return (card.actionIcons ?? NONE).map(({ id, icon, iconDescription, onClick, href }) => (\n        <IconButton key={id} kind=\"ghost\" size={layout.iconSize} label={iconDescription} href={href} onClick={onClick} className={hover}>\n            {icon}\n        </IconButton>\n    ));\n}\n\n/** .c4p--card__actions-header-ghost-button: 10px each side, a 24px layer-hover-01 rule before it (none on a first button with one after it). */\nfunction headerButtonClasses(first: boolean) {\n    return cn(\n        'peer/button relative inline-flex',\n        \"before:pointer-events-none before:absolute before:start-0 before:top-1 before:z-1 before:h-6 before:w-[0.05rem] before:bg-ghost-hover before:content-['']\",\n        'hover:before:opacity-0 peer-hover/button:before:opacity-0',\n        first && 'before:hidden',\n    );\n}\nconst HEADER_BUTTON = 'ps-2.5 pe-2.5';\n\n/** The header's actions box: icons (or the overflow menu), then the secondary and primary ghost sm buttons; `lifted` 4px up. */\nfunction HeaderActions({ card, layout, options, lifted }: Readonly<PartProps & { lifted: boolean }>) {\n    const icons = layout.overflow || (card.actionIcons?.length ?? 0) > 0;\n    return (\n        <div className={cn('m-0 flex min-h-8 flex-row', ABOVE, lifted && '-mt-1')}>\n            <Icons card={card} layout={layout} options={options} />\n            {layout.headerSecondary ? (\n                <span className={headerButtonClasses(!icons && layout.headerPrimary)}>\n                    <Button kind=\"ghost\" size=\"sm\" href={card.secondaryButtonHref || undefined} disabled={card.secondaryButtonDisabled} icon={card.secondaryButtonIcon} onClick={card.onSecondaryButtonClick} className={HEADER_BUTTON}>\n                        {card.secondaryButtonText}\n                    </Button>\n                </span>\n            ) : null}\n            {layout.headerPrimary ? (\n                <span className={headerButtonClasses(false)}>\n                    <Button kind=\"ghost\" size=\"sm\" disabled={card.primaryButtonDisabled} icon={card.primaryButtonIcon} onClick={card.onPrimaryButtonClick} className={HEADER_BUTTON}>\n                        {card.primaryButtonText}\n                    </Button>\n                </span>\n            ) : null}\n        </div>\n    );\n}\n\n/** Carbon `CardHeader`: label, title, description, the top actions and the decorator. */\nfunction Header({ card, layout, options }: Readonly<PartProps>) {\n    const { label, title, description, decorator, headingAs = 'h2', productive } = card;\n    const state = productCardHeader({ hasLabel: !!label, hasTitle: !!title, hasDescription: !!description, titleSize: card.titleSize });\n    const titleType = productive && !state.large ? 'type-heading-compact-02' : 'type-heading-03';\n    return (\n        <div className={cn('p-4 pe-0', state.labelOnly && 'pb-2')}>\n            <div className={cn('flex flex-row justify-between', productive ? 'items-start' : 'items-center', containerEnd(!!decorator, layout.headerActions, state.largeOrLabel))}>\n                <div>\n                    {label ? <ProductCardPrimitive.Label className={cn(CAPTION, !state.labelOnly && 'mb-0.5')}>{label}</ProductCardPrimitive.Label> : null}\n                    {title ? (\n                        <ProductCardPrimitive.Title as={headingAs} className={cn(titleType, 'tracking-[0]')}>\n                            {title}\n                        </ProductCardPrimitive.Title>\n                    ) : null}\n                    {description ? <ProductCardPrimitive.Description className={cn(CAPTION, 'mt-0.5')}>{description}</ProductCardPrimitive.Description> : null}\n                </div>\n                {/* the top actions 4px up, unless a label or a large title is there */}\n                {layout.headerActions ? <HeaderActions card={card} layout={layout} options={options} lifted={!state.large && !state.hasLabel} /> : null}\n                {decorator ? <div className=\"absolute end-4 top-4 z-1\">{decorator}</div> : null}\n            </div>\n        </div>\n    );\n}\n\n/** Carbon `CardFooter`: the secondary and primary md buttons, then the actions; productive under a border-subtle-01 line. */\nfunction Footer({ card, layout, options, mediaLeft }: Readonly<PartProps & { mediaLeft: boolean }>) {\n    if (!layout.footer) return null;\n    const { productive } = card;\n    return (\n        <div className={cn('flex justify-end', productive && 'items-center border-0 border-t border-solid border-row-divider', productive && !layout.footerNoButton && 'justify-between', mediaLeft && 'mt-auto self-end')}>\n            {layout.footerSecondary ? (\n                <Button kind={layout.footerSecondaryKind} size=\"md\" href={card.secondaryButtonHref || undefined} disabled={card.secondaryButtonDisabled} icon={card.secondaryButtonIcon} onClick={card.onSecondaryButtonClick} className={ABOVE}>\n                    {card.secondaryButtonText}\n                </Button>\n            ) : null}\n            {layout.footerPrimary ? (\n                <Button kind={layout.footerPrimaryKind} size=\"md\" href={card.primaryButtonHref || undefined} disabled={card.primaryButtonDisabled} icon={card.primaryButtonIcon} onClick={card.onPrimaryButtonClick} className={ABOVE}>\n                    {card.primaryButtonText}\n                </Button>\n            ) : null}\n            {layout.footerActions ? (\n                <div className={cn('flex flex-row', ABOVE, productive && 'm-0 min-h-8')}>\n                    <Icons card={card} layout={layout} options={options} />\n                </div>\n            ) : null}\n        </div>\n    );\n}\n\n/** What both cards share (Carbon for IBM Products' legacy `Card`): media, pictogram, header, body, footer and the click zone. */\nfunction Frame({ card, rest }: Readonly<{ card: CardSettings; rest: DivProps }>) {\n    const { productive, media, pictogram, onClick, disabled = false } = card;\n    const { className, children, ref, ...div } = rest;\n    const options = useTranslation(card.lang).common.options;\n    const layout = productCardLayout({\n        productive,\n        clickable: !!onClick,\n        clickZone: card.clickZone,\n        actionsPlacement: card.actionsPlacement,\n        hasActionIcons: (card.actionIcons?.length ?? 0) > 0,\n        hasOverflowActions: card.overflowActions.length > 0,\n        hasPrimaryButton: !!card.primaryButtonText,\n        primaryButtonPlacement: card.primaryButtonPlacement,\n        primaryButtonKind: card.primaryButtonKind,\n        hasSecondaryButton: !!card.secondaryButtonText,\n        secondaryButtonPlacement: card.secondaryButtonPlacement,\n        secondaryButtonKind: card.secondaryButtonKind,\n    });\n    const zone = layout.zone;\n    const mediaLeft = !!media && card.mediaPosition === 'left';\n    const parts = { card, layout, options };\n    return (\n        <ProductCardPrimitive.Root\n            {...div}\n            ref={ref}\n            lang={card.lang}\n            onClick={onClick}\n            disabled={disabled}\n            className={cn(\n                // the card settings: Carbon a transparent border and square; Kanok a hairline, 12px, media clipped to the corners\n                'relative h-full rounded-[var(--ui-card-radius,0px)] border border-solid border-[var(--ui-tile-border-color,transparent)] bg-[var(--ui-card-background,var(--ui-surface-1))] font-sans text-ink [overflow:var(--ui-card-overflow,visible)] forced-colors:border-[CanvasText]',\n                productive && 'flex flex-col',\n                mediaLeft && 'flex flex-row',\n                zone === 'card' && cn(ZONE, 'border-border-tile'),\n                className,\n            )}\n        >\n            <Trigger zone={zone} where=\"card\" />\n            {media ? <div className=\"[&>*]:block [&>*]:max-w-full\">{media}</div> : null}\n            {/* .c4p--card__pictogram: an inline pictogram (not preflight's block) on Carbon's line-height 1 */}\n            {pictogram ? <div className=\"ps-4 pt-4 leading-none [&>svg]:inline [&>svg]:align-baseline\">{pictogram}</div> : null}\n            {/* .c4p--card__media + .c4p--card__content-container: the decorator places itself under the media */}\n            <div className={cn((productive || mediaLeft) && 'flex flex-1 flex-col', !!media && 'relative')}>\n                <div className={cn(productive && 'flex-1', zone === 'header-body' && ZONE)}>\n                    <Trigger zone={zone} where=\"header-body\" />\n                    <div>\n                        <Header {...parts} />\n                        <ProductCardPrimitive.Body\n                            className={cn('p-4 pt-0 type-body-sm leading-[18px]!', productive && 'pt-2', zone === 'body' && ZONE, BODY_CONTROLS)}\n                        >\n                            <Trigger zone={zone} where=\"body\" />\n                            {children}\n                        </ProductCardPrimitive.Body>\n                    </div>\n                </div>\n                <Footer {...parts} mediaLeft={mediaLeft} />\n            </div>\n        </ProductCardPrimitive.Root>\n    );\n}\n\n/**\n * Carbon for IBM Products `ProductiveCard`: a `$layer` card for dense product UI — a heading-compact-02 title\n * (`titleSize=\"large\"`: heading-03), its label and description, the body (`children`), and actions: icon buttons\n * (`actionIcons`; sm at the top, md at the bottom) or an overflow menu instead (`overflowActions`), at the top (default)\n * or the bottom (`actionsPlacement`). The primary and secondary buttons are ghost buttons: at the bottom (md, in a\n * footer under a `border-subtle-01` line) or, next to the top actions, at the top (sm). It follows the `Layer` it sits on.\n * Carbon for IBM Products' current (legacy-style) prop-driven cards, for screens that must match IBM product UIs; for\n * new work prefer `Card` (Carbon's parts-based card, the direction of both Carbon and IBM Products' unreleased Card next).\n *\n * `onClick` makes one zone a button (a click, Enter or Space): `clickZone` one = the card, two = the header with the\n * body, three = the body. Its border turns `border-tile-01`, `layer-hover-01` under the pointer, the focus ring on\n * :focus. The zone's button lies under the card's own controls, which stay separate tab stops and never call `onClick`;\n * a link or button put directly in the body sits above it too.\n */\nexport function ProductiveCard({\n    title,\n    headingAs,\n    label,\n    description,\n    actionIcons,\n    decorator,\n    onClick,\n    disabled,\n    clickZone = 'one',\n    actionsPlacement = 'top',\n    titleSize = 'default',\n    overflowActions = NONE,\n    overflowAriaLabel,\n    primaryButtonText,\n    primaryButtonHref,\n    primaryButtonIcon,\n    primaryButtonDisabled,\n    primaryButtonPlacement = 'bottom',\n    onPrimaryButtonClick,\n    secondaryButtonText,\n    secondaryButtonHref,\n    secondaryButtonIcon,\n    secondaryButtonDisabled,\n    secondaryButtonPlacement = 'bottom',\n    onSecondaryButtonClick,\n    lang,\n    ...rest\n}: Readonly<ProductiveCardProps>) {\n    const card: CardSettings = {\n        productive: true,\n        title,\n        headingAs,\n        label,\n        description,\n        actionIcons,\n        decorator,\n        onClick,\n        disabled,\n        clickZone,\n        actionsPlacement,\n        titleSize,\n        overflowActions,\n        overflowAriaLabel,\n        primaryButtonText,\n        primaryButtonHref,\n        primaryButtonIcon,\n        primaryButtonDisabled,\n        primaryButtonPlacement,\n        primaryButtonKind: 'ghost',\n        onPrimaryButtonClick,\n        secondaryButtonText,\n        secondaryButtonHref,\n        secondaryButtonIcon,\n        secondaryButtonDisabled,\n        secondaryButtonPlacement,\n        secondaryButtonKind: 'ghost',\n        onSecondaryButtonClick,\n        mediaPosition: 'top',\n        lang,\n    };\n    return <Frame card={card} rest={rest} />;\n}\n\n/**\n * Carbon for IBM Products `ExpressiveCard`: a `$layer` card for content — optional `media` on top or at the start\n * (`mediaPosition=\"left\"`), a `pictogram`, a heading-03 title with its label and description, the body (`children`),\n * and a footer with the secondary and primary md buttons (`primaryButtonKind` primary | ghost, `secondaryButtonKind`\n * secondary | ghost) and small ghost icon buttons (`actionIcons`). It follows the `Layer` it sits on. Carbon for IBM\n * Products' current (legacy-style) prop-driven cards, for screens that must match IBM product UIs; for new work prefer\n * `Card` (Carbon's parts-based card, the direction of both Carbon and IBM Products' unreleased Card next).\n *\n * `onClick` makes the whole card a button (a click, Enter or Space): its border turns `border-tile-01`, `layer-hover-01`\n * under the pointer, the focus ring on :focus. The card's button lies under its own controls, which stay separate tab\n * stops and never call `onClick`; a link or button put directly in the body sits above it too.\n */\nexport function ExpressiveCard({\n    title,\n    headingAs,\n    label,\n    description,\n    actionIcons,\n    decorator,\n    onClick,\n    disabled,\n    media,\n    mediaPosition = 'top',\n    pictogram,\n    primaryButtonText,\n    primaryButtonHref,\n    primaryButtonIcon,\n    primaryButtonDisabled,\n    primaryButtonKind = 'primary',\n    onPrimaryButtonClick,\n    secondaryButtonText,\n    secondaryButtonHref,\n    secondaryButtonIcon,\n    secondaryButtonDisabled,\n    secondaryButtonKind = 'secondary',\n    onSecondaryButtonClick,\n    lang,\n    ...rest\n}: Readonly<ExpressiveCardProps>) {\n    const card: CardSettings = {\n        productive: false,\n        title,\n        headingAs,\n        label,\n        description,\n        actionIcons,\n        decorator,\n        onClick,\n        disabled,\n        clickZone: 'one',\n        actionsPlacement: 'bottom',\n        titleSize: 'default',\n        overflowActions: NONE,\n        primaryButtonText,\n        primaryButtonHref,\n        primaryButtonIcon,\n        primaryButtonDisabled,\n        primaryButtonPlacement: 'bottom',\n        primaryButtonKind,\n        onPrimaryButtonClick,\n        secondaryButtonText,\n        secondaryButtonHref,\n        secondaryButtonIcon,\n        secondaryButtonDisabled,\n        secondaryButtonPlacement: 'bottom',\n        secondaryButtonKind,\n        onSecondaryButtonClick,\n        media,\n        mediaPosition,\n        pictogram,\n        lang,\n    };\n    return <Frame card={card} rest={rest} />;\n}\n"
    }
  ]
}
