/**
 * Code Connect mapping for MBuiltInMenu
 * Links Figma Built-in menu (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-11260',
  {
    props: {
      outlined: figma.enum('is outlined', {
        true: true,
        false: false,
      }),
    },
    example: ({ outlined }) =>
      html`<script setup>
          import { MBuiltInMenu } from '@mozaic-ds/vue';
        </script>

        <MBuiltInMenu
          :items="[{ label: 'Label' }, { label: 'Label' }]"
          outlined=${outlined}
        />`,
  },
);
