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

figma.connect(
  'https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-?node-id=11697-6376',
  {
    imports: ["import { SidebarShortcutItem } from '@mozaic-ds/web-components/svelte';"],
    props: {
      label: figma.string('Text'),
      format: figma.enum('🚫 Format', {
        Grid: 'grid',
        Stacked: 'stacked',
      }),
      expanded: figma.enum('🚫 Expanded sidebar', {
        True: true,
        False: false,
      }),
      selected: figma.enum('Is selected', {
        False: false,
        True: true,
      }),
      state: figma.enum('State', {
        Default: 'default',
        Hovered: 'hovered',
      }),
    },
    example: ({ label }) => <SidebarShortcutItem label={label} href="#"></SidebarShortcutItem>,
  },
);
