import { View, Text, Image } from "@tarojs/components";
import './Tooltip.scss'
export default function Component(props: { title: string, closeTip: Function }) {
    return (
        <View className="tip_bg">
            <View className="arrow"/>
            <Image className="tip_more" src={require('@assets/images/more.png')} />
            <Text className="tip_text">{props.title}</Text>
            <Image className="tip_close" src={require('@/assets/images/close.png')} onClick={() => {props.closeTip()}} />
        </View>
    )
}