import { ComponentClass } from 'react'
import Taro, { Component } from '@tarojs/taro'
import { View, Label } from '@tarojs/components'
import './index.scss'
interface DataInterface {
key: any
value: string
}
type PageOwnProps = {
className?: string
data: DataInterface[]
active: any
onClick?: any
}
type IProps = PageOwnProps
interface Index {
props: IProps;
}
class Index extends Component {
static options = {
addGlobalClass: true
}
handleNav = e => {
this.props.onClick(e)
}
render() {
const { data, active } = this.props
return (
{
data.map(e => {
return
})
}
)
}
}
export default Index as ComponentClass