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

const PisellAdyenDashboardMeta: ComponentMetadata = {
  componentName: 'PisellAdyenDashboard',
  title: 'Adyen 报表看板',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '3.4.128',
    exportName: 'PisellAdyenDashboard',
    main: 'src/index.ts',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'Adyen environment',
            'zh-CN': 'Adyen 环境',
          },
        },
        name: 'environment',
        setter: {
          componentName: 'SelectSetter',
          props: {
            options: [
              { title: '测试环境', value: 'test' },
              { title: '正式环境', value: 'live' },
            ],
          },
        },
        defaultValue: 'test',
      },
    ],
    supports: {
      style: true,
      className: true,
    },
    component: {},
  },
};

const snippets: Snippet[] = [
  {
    title: 'Adyen 报表看板',
    screenshot: '',
    schema: {
      componentName: 'PisellAdyenDashboard',
      props: {
        environment: 'test',
      },
    },
  },
];

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