/**
 * Code Connect mapping for MBreadcrumb
 * Links Figma Breadcrumb (ADS2) to @mozaic-ds/vue
 */
import figma, { html } from '@figma/code-connect/html';

figma.connect(
  'https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-?node-id=6-11237',
  {
    props: {
      appearance: figma.enum('Appearance', {
        Standard: 'standard',
        'Inverse (only on dark background)': 'inverse',
      }),
    },
    example: ({ appearance }) =>
      html`<script setup>
          import { MBreadcrumb } from '@mozaic-ds/vue';
        </script>

        <MBreadcrumb
          appearance=${appearance}
          :links="[
          { label: 'Home', href: '#' },
          { label: 'Level 01', href: '#' },
          { label: 'Current Page', href: '#' },
        ]"
          aria-label="breadcrumb"
        ></MBreadcrumb>`,
  },
);
