const BoxMeta = {
  componentName: 'Box',
  title: '容器',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  group: '基础组件',
  category: '布局类',
  npm: {
    package: 'kernelsoft-lowcode-material',
    version: '0.1.0',
    exportName: 'Box',
    main: 'src/index.tsx',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'style',
            'zh-CN': 'style',
          },
        },
        name: 'style',
        setter: {
          componentName: 'ObjectSetter',
          props: {
            config: {
              extraSetter: {
                componentName: 'MixedSetter',
                isRequired: false,
                props: {},
              },
            },
          },
          isRequired: true,
          initialValue: {},
        },
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'content',
            'zh-CN': '内容',
          },
        },
        name: 'children',
        setter: {
          componentName: 'SlotSetter',
          props: {
            mode: 'node',
          },
          isRequired: false,
        },
      },
    ],
    supports: {
      style: true,
    },
    component: {},
  },
};
const snippets = [
  {
    title: '容器',
    screenshot: require('../icons/box.svg'),
    schema: {
      componentName: 'Box',
      props: {
        children: {
          type: 'JSSlot',
          value: [],
        },
      },
    },
  },
];

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