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

figma.connect(
  'https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-?node-id=156-18803',
  {
    imports: ["import { TileClickable } from '@mozaic-ds/web-components/svelte';"],
    props: {
      appearance: figma.enum('Appearance', {
        Primary: 'primary',
        Secondary: 'secondary',
        Inverse: 'inverse',
      }),
      iconposition: figma.enum('Icon position', {
        Bottom: 'bottom',
        Right: 'right',
      }),
    },
    example: ({ appearance, iconposition }) => (
      <TileClickable appearance={appearance} iconposition={iconposition}>
        Tile clickable
        <chevron-right-24 slot="icon"></chevron-right-24>
      </TileClickable>
    ),
  },
);
