// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';

const SliderMeta: IPublicTypeComponentMetadata = {
  componentName: 'Slider',
  title: 'Slider',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: 'kernelsoft-lowcode-material',
    version: '0.1.1-alpha2',
    exportName: 'Slider',
    main: 'src/index.tsx',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'value',
            'zh-CN': 'value',
          },
        },
        name: 'value',
        setter: {
          componentName: 'NumberSetter',
          isRequired: true,
          initialValue: 0,
        },
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'onChange',
            'zh-CN': 'onChange',
          },
        },
        name: 'onChange',
        setter: {
          componentName: 'FunctionSetter',
          isRequired: true,
        },
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'icon',
            'zh-CN': 'icon',
          },
        },
        name: 'icon',
        setter: {
          componentName: 'MixedSetter',
          isRequired: true,
          props: {},
        },
      },
    ],
    supports: {
      style: true,
    },
    component: {},
  },
};
// const snippets: IPublicTypeSnippet[] = [
//   {
//     title: 'Slider',
//     screenshot: '',
//     schema: {
//       componentName: 'Slider',
//       props: {},
//     },
//   },
// ];

export default {
  ...SliderMeta,
  // snippets,
};
