import { Component } from "react";

import "./SellPanel.less";
import { Button } from "@grace/ui";
import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx";

export class SellPanel extends Component<any, any> {

    componentDidMount() {
    }

    clickOk = () => {
        ModalCtrl.closeModal();
        this.props?.call();
    }
    clickClose = () => {
        ModalCtrl.closeModal();
    }

    render() {

        const {name, amount} = this.props;

        return <div className="SellPanel modal_center">
            <div className="bg"/>
            <div className="tip">您申请模拟赎回{name}产品{amount}份</div>
            <Button className="btn md15" onClick={this.clickOk}/>
            <Button className="cancel md14" onClick={this.clickClose}/>
            <Button className="close" onClick={this.clickClose}/>
        </div>
    }


}
