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

figma.connect(
  'https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-?node-id=11880-28442',
  {
    imports: ["import { SidebarFooter } from '@mozaic-ds/web-components/svelte';"],
    props: {
      expanded: figma.enum('🚫 Expanded sidebar', {
        True: true,
        False: false,
      }),
      expandable: figma.boolean('Is expandable'),
      hasProfileInfo: figma.boolean('Has profile info'),
      hasUserMenu: figma.boolean('User menu'),
    },
    example: ({ expandable }) => (
      <SidebarFooter
        title="User name"
        subtitle="Role"
        avatar="/avatar.png"
        expandable={expandable}
      ></SidebarFooter>
    ),
  },
);
