import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';

const EventResourceUsabilityMeta: IPublicTypeComponentMetadata = {
  componentName: 'EventScheduleCalendar',
  title: '日程安排日历',
  category: '数据展示',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.0.4',
    exportName: 'EventScheduleCalendar',
    main: 'src/index.tsx',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        name: 'showScheduleName',
        title: { label: '显示 Schedule name', tip: 'showScheduleName | 显示 Schedule name' },
        setter: 'BoolSetter',
      },
      {
        name: 'showScheduleTime',
        title: { label: '显示 Schedule 具体时间段', tip: 'showScheduleTime | 显示 Schedule 具体时间段' },
        setter: 'BoolSetter',
      },
    ],
    supports: {
      style: true,
      events: [
      ],
    },
  },
};

const snippets: IPublicTypeSnippet[] = [
  {
    title: '日程安排日历',
    screenshot: '',
    schema: {
      componentName: 'EventScheduleCalendar',
      props: {
        showScheduleName: true,
        showScheduleTime: true,
      },
    },
  },
];

export default {
  ...EventResourceUsabilityMeta,
  snippets,
};