import { ComponentMetadata } from '@alilc/lowcode-types';
import snippets from './snippets';

const WalletEditorMeta: ComponentMetadata = {
  componentName: 'WalletEditor',
  title: '钱包编辑器',
  docUrl: '',
  screenshot: '',
  category: '表单',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.0.0',
    exportName: 'WalletEditor',
    main: 'src/index.tsx',
    destructuring: true,
    subName: '',
  },
  props: [],
  configure: {
    props: [
      {
        title: {
          label: '钱包配置值',
        },
        name: 'value',
        propType: 'object',
        setter: 'JsonSetter',
      },
      {
        title: {
          label: '样式类名',
        },
        name: 'className',
        propType: 'string',
        setter: 'StringSetter',
      },
    ],
    supports: {
      style: true,
      events: [
        {
          name: 'onChange',
          description: '钱包配置变化时的回调',
        },
      ],
    },
    component: {
      isContainer: false,
    },
  },
};

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