import snippets from './snippets';

export default {
  snippets,
  componentName: 'PageHeader',
  title: '页面头部',
  category: '导航',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/materials',
    version: '1.0.1',
    exportName: 'PageHeader',
    main: 'src/index.tsx',
    destructuring: true,
    subName: '',
  },
  props: [
    {
      name: 'title',
      title: {
        label: {
          type: 'i18n',
          'zh-CN': '标题',
          'en-US': 'Title',
          'zh-HK': '標題',
        },
      },
      setter: ['PisellI18nSetter', 'SlotSetter'],
    },
    {
      name: 'showTitle',
      title: {
        label: {
          type: 'i18n',
          'zh-CN': '是否显示标题',
          'en-US': 'Show Title',
          'zh-HK': '是否顯示標題',
        },
      },
      defaultValue: true,
      setter: 'BoolSetter',
    },
    {
      name: 'subTitle',
      title: {
        label: {
          type: 'i18n',
          'zh-CN': '副标题',
          'en-US': 'Sub Title',
          'zh-HK': '副標題',
        },
      },
      setter: ['PisellI18nSetter', 'SlotSetter'],
    },
    {
      name: 'showSubTitle',
      title: {
        label: {
          type: 'i18n',
          'zh-CN': '是否显示副标题',
          'en-US': 'Show Sub Title',
          'zh-HK': '是否顯示副標題',
        },
      },
      defaultValue: true,
      setter: 'BoolSetter',
    },
    {
      name: 'showDivider',
      title: {
        label: {
          type: 'i18n',
          'zh-CN': '是否显示分割线',
          'en-US': 'Show Divider',
          'zh-HK': '是否顯示分割線',
        },
      },
      setter: 'BoolSetter',
    },
    {
      name: 'extra',
      title: {
        label: {
          type: 'i18n',
          'zh-CN': '额外内容',
          'en-US': 'Extra',
          'zh-HK': '額外內容',
        },
      },
      setter: ['PisellI18nSetter', 'SlotSetter'],
    },
  ],
  configure: {
    supports: {
      style: true,
      events: [],
    },
  },
};
