import { ComponentClass } from 'react' import Taro, { Component } from '@tarojs/taro' import { View, Image, Label } from '@tarojs/components' import './index.scss' type PageOwnProps = { className?: string title: any image?: any extra?: any } type IProps = PageOwnProps interface Index { props: IProps; } class Index extends Component { static options = { addGlobalClass: true } render() { const { title, image, extra } = this.props return ( { image && } ) } } export default Index as ComponentClass