const SaasAppDevicePlanningMeta = {
  componentName: 'SaasAppDevicePlanning',
  title: 'SaasAppDevicePlanning',
  docUrl: '',
  screenshot: '',
  category: 'SaaS',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.0.0',
    exportName: 'SaasAppDevicePlanning',
    main: 'src/index.ts',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        name: 'kind',
        title: {
          label: 'Kind',
        },
        setter: {
          componentName: 'RadioGroupSetter',
          props: {
            options: [
              { label: 'smart', value: 'smart' },
              { label: 'dumb', value: 'dumb' },
              { label: 'integrated', value: 'integrated' },
            ],
          },
          initialValue: 'smart',
        },
      },
      {
        name: 'typeCode',
        title: {
          label: 'Type Code',
        },
        setter: 'StringSetter',
      },
      {
        name: 'modelCode',
        title: {
          label: 'Model Code',
        },
        setter: 'StringSetter',
      },
      {
        name: 'showBack',
        title: {
          label: 'Show Back Button',
        },
        setter: 'BoolSetter',
        initialValue: false,
      },
    ],
    supports: {
      style: true,
      className: true,
      events: [
        {
          name: 'onLinked',
          template:
            "onLinked({ device, channel }){\n// 设备绑定完成回调\nconsole.log('onLinked', device, channel);}",
        },
      ],
    },
    component: {},
  },
};

export default {
  ...SaasAppDevicePlanningMeta,
  snippets: [
    {
      title: 'SaasAppDevicePlanning',
      screenshot: '',
      schema: {
        componentName: 'SaasAppDevicePlanning',
        props: {
          kind: 'smart',
          typeCode: '',
          modelCode: '',
          showBack: false,
        },
      },
    },
  ],
};
