import { View } from "@tarojs/components";
import './cell.scss'

export default function Cell(props: { disable?: boolean, className?: any, onClick?: any, children: any }) {

    var name = `common_cell_bg ${props.className}`
    
    return <View className={name} hoverClass={props.disable ? '' : 'cell_hover'} onClick={props.onClick}>
        {
            props.children
        }
    </View>
}