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

figma.connect(
  'https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-?node-id=1647-16440',
  {
    imports: ["import { AccordionList } from '@mozaic-ds/web-components/svelte';"],
    props: {
      appearance: figma.enum('Appareance', {
        Standard: 'standard',
        Ghost: 'ghost',
      }),
    },
    example: ({ appearance }) => (
      <AccordionList appearance={appearance}>
        <m-accordion-list-item title="Section 1">Content</m-accordion-list-item>
        <m-accordion-list-item title="Section 2">Content</m-accordion-list-item>
      </AccordionList>
    ),
  },
);
