20 lines
520 B
TypeScript
20 lines
520 B
TypeScript
import { View, Text } from "@tarojs/components"
|
|
import { memo } from "react"
|
|
import style from "./index.module.scss"
|
|
|
|
type Params = {
|
|
onClose?: () => void,
|
|
styleObj?: Object
|
|
}
|
|
|
|
export default memo(({onClose, styleObj = {}}:Params) => {
|
|
return (
|
|
<View
|
|
style={styleObj}
|
|
className={style.icon_a_cuowuwrong_self}
|
|
onClick={onClose}
|
|
>
|
|
<Text className={`iconfont icon-qingkong ${style.icon_a_btn}`}></Text>
|
|
</View>
|
|
)
|
|
}) |