import figma from '@figma/code-connect';

figma.connect(
  'https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-?node-id=156-18764',
  {
    imports: ["import { TileExpandable } from '@mozaic-ds/web-components/svelte';"],
    props: {
      appearance: figma.enum('Appearance', {
        Primary: 'primary',
        Secondary: 'secondary',
      }),
      trigger: figma.enum('Triggering event', {
        Container: 'container',
        Icon: 'icon',
        Button: 'button',
      }),
    },
    example: ({ appearance, trigger }) => (
      <TileExpandable appearance={appearance} trigger={trigger}>
        Tile expandable
        <div slot="details">Expandable details</div>
      </TileExpandable>
    ),
  },
);
