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

const TextMeta: IPublicTypeComponentMetadata = {
  componentName: 'Text',
  title: '文本',
  docUrl: '',
  devMode: 'proCode',
  group: '基础组件',
  category: '基础元素',
  npm: {
    package: 'kernelsoft-lowcode-material',
    version: '0.1.0',
    exportName: 'Text',
    main: 'src/index.tsx',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'text',
            'zh-CN': '文本',
          },
        },
        name: 'text',
        setter: {
          componentName: 'StringSetter',
          isRequired: true,
          props: {},
        },
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'block',
            'zh-CN': '块级',
          },
        },
        name: 'block',
        setter: {
          componentName: 'BoolSetter',
          isRequired: true,
          props: {},
        },
      },
    ],
    supports: {
      style: true,
    },
    component: {},
  },
};
const snippets: IPublicTypeSnippet[] = [
  {
    title: '文本',
    screenshot: require('../icons/text.svg'),
    schema: {
      componentName: 'Text',
      props: {
        text: '文本组件',
      },
    },
  },
];

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