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


const SettingsRegistryMeta: ComponentMetadata = {
  componentName: 'SettingsRegistry',
  title: 'SettingsRegistry',
  docUrl: '',
  screenshot: '',
  category: '表单',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.0.0',
    exportName: 'SettingsRegistry',
    main: 'src/index.ts',
    destructuring: true,
    subName: '',
  },
  props: [],
  configure: {
    props: [
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'Scene',
            'zh-CN': '场景',
          },
        },
        display: 'block',
        type: 'group',
        items: [
          {
            name: 'scene',
            title: {
              label: {
                type: 'i18n',
                'en-US': 'Scene',
                'zh-CN': '场景',
              },
              tip: 'scene | 命中 "device" 时调用 device 版本接口',
            },
            propType: 'string',
            setter: [
              {
                componentName: 'SelectSetter',
                props: {
                  options: [
                    { title: '默认', value: '' },
                    { title: 'Device', value: 'device' },
                  ],
                },
              },
              'StringSetter',
              'VariableSetter',
            ],
          },
        ],
      },
    ],
    component: {
      isContainer: false,
    },
  },
};

export default {
  ...SettingsRegistryMeta,
};
