// import { ReactNode } from 'react'; import Taro, { Component, Config } from '@tarojs/taro'; import { View, Button, Text, Image, Label, Block } from '@tarojs/components'; import shareFri from '../../assets/images/shareFri.png'; import shareCir from '../../assets/images/shareCir.png'; import './index.scss'; interface ComponentProps { title?: string; children?: any; visible: boolean; close?: () => void; saveCanvas: () => void; btnId?: string; footer?: any; } interface ComponentState {} export default class ShareCanvas extends Component { constructor(props) { super(props); } state = {}; closeCvs = () => { this.props.close && this.props.close(); }; saveCanvas = () => { this.props.saveCanvas && this.props.saveCanvas(); }; touchmove = (e) => { e.stopPropagation(); }; render() { const { visible, btnId, footer } = this.props; return ( visible && ( this.closeCvs()}> {this.props.children}