import { Button, View } from "@tarojs/components";

export default function ShareBtn(props: { children: any, onClick?: any }) {
    return <View style={{ position: 'relative' }}>
        {
            props.children
        }
        <Button openType="share" style={{
            position: 'absolute',
            left: 0,
            right: 0,
            top: 0,
            bottom: 0
        }} onClick={() => {
            if (props.onClick) {
                props.onClick()
            }
        }} />
    </View>
}