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

figma.connect(
  'https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-?node-id=11697-6403',
  {
    imports: [
      "import { SidebarShortcutItem, SidebarShortcuts } from '@mozaic-ds/web-components/svelte';",
    ],
    props: {
      expanded: figma.enum('🚫 Expanded sidebar', {
        True: true,
        False: false,
      }),
      isExpanded: figma.boolean('is expanded'),
      stacked: figma.enum('Format', {
        Grid: false,
        Stacked: true,
      }),
    },
    example: ({ stacked }) => (
      <SidebarShortcuts stacked={stacked}>
        <SidebarShortcutItem label="Shortcut" href="#"></SidebarShortcutItem>
      </SidebarShortcuts>
    ),
  },
);
