export default {
  props: {
    title: {
      type: String,
      default: '',
    },
    backToTabbar: {
      type: Boolean,
      default: false,
    },
    transparent: {
      type: Boolean,
      default: false,
    },
    backDelta: {
      type: Number,
      default: 1,
    },
    showLeftCapsule: {
      type: Boolean,
      default: true,
    },
    showHomeButton: {
      type: Boolean,
      default: true,
    },
    navStyle: {
      type: String,
      default: 'white',
    },
    rightLinkColor: {
      type: String,
      default: 'white',
    },
    rightLink: {
      type: String,
      default: '',
    },
    defaultBackUrl: {
      type: String,
      default: '',
    },
    clickHomeIcon: {
      type: Function,
      // eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/explicit-module-boundary-types
      default: () => {
        if (uni.$k.props.navigationBar.clickHomeIcon) {
          uni.$k.props.navigationBar.clickHomeIcon();
        }
      }
    }
  },
}
