import { ComponentClass } from 'react'
import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import './index.scss'
import { AtIcon } from 'taro-ui';
type PageOwnProps = {
className?: string
title: string
require?: boolean
extraIcon?: { value: string, color: string, size: number }
onIconClick?: any
}
type IProps = PageOwnProps
interface Index {
props: IProps;
}
class Index extends Component {
static options = {
addGlobalClass: true
}
handleClick = () => {
this.props.onIconClick()
}
render() {
const { title, require, extraIcon = { value: '', size: 0, color: '' } } = this.props
return (
{
require && *
}
{title}
{
extraIcon.value &&
}
)
}
}
export default Index as ComponentClass