import { Snippet } from '@alilc/lowcode-types';

const snippets: Snippet[] = [
  {
    title: '选择持有人',
    screenshot: '',
    schema: {
      componentName: 'SelectHolder',
      props: {
        dataSource: [
          {
            value: 1,
            label: 'Olivia',
            subtitle: 'Subtitle',
          },
          {
            value: 2,
            label: 'Ricky Spagehetti',
            subtitle: 'SubtitleSubtitleSubtitleSubtitleSubtitleSubtitleSubtitleSubtitle',
          },
        ],
        value: [1],
        modalConfig: {
          title: 'Who would you like to book this event for?',
          confirmText: 'Confirm',
          showClose: true,
        },
        displayConfig: {
          showAvatar: true,
          showTitle: true,
          showSubtitle: true,
          isSkipable: true,
          direction: 'horizontal',
          selectType: 'single',
        },
      },
    },
  },
];

export default snippets;
