/*
 * Author: 黎永顺
 * name: 工资单模板-新增编辑薪资项目项
 * Description:
 * Date: 2023/2/2
 */
import React, { Component } from "react";
import { WeaDialog } from "ecCom";
import { Button } from "antd";

class SalaryItemModal extends Component {
  render() {
    const { visible, title, onCancel, onConfirm } = this.props;
    const buttons = [
      <Button type="primary" onClick={onConfirm}>确定</Button>,
      <Button type="ghost" onClick={onCancel}>取消</Button>
    ];
    return (
      <WeaDialog
        onCancel={onCancel}
        title={title}
        visible={visible}
        style={{ width: 600 }}
        hasScroll
        buttons={buttons}
        initLoadCss
        className="salaryItemModalWrapper"
      >
        {this.props.children}
      </WeaDialog>
    );
  }
}

export default SalaryItemModal;
