import { ComponentClass } from 'react'
import Taro, { Component } from '@tarojs/taro'
import { View, Image, Text } from '@tarojs/components'
import './index.scss'
type PageOwnProps = {
className?: string
shop: {
shopLogo: string
shopName: string
},
children: any,
onShopClick?: any
}
type IProps = PageOwnProps
interface Index {
props: IProps;
}
class Index extends Component {
static options = {
addGlobalClass: true
}
handleShopClick = () => {
this.props.onShopClick()
}
render() {
const { shop, className } = this.props
return (
{shop.shopName}
{this.props.children}
)
}
}
export default Index as ComponentClass