import React from "react";
import Modals from '../../Component/PublicModal/Index';
import { AlignTop } from '../../Component/layout';
import { Button } from 'antd';

function DelBox({visible,onCancel,onSuccess,content,title}){
  return(
    <Modals
      visible={visible}
      onCancel={onCancel}
      title={title || "删除疑修"}
      btn={
        <div>
          <Button size={'large'} onClick={onCancel}>取消</Button>
          <Button type={"danger"} size={"large"} onClick={onSuccess}>确认删除</Button>
        </div>
      }
    >
      <div className="desc">
        <AlignTop className="deldesc">
          <i className="iconfont icon-jinggao1 mr10 font-20 red"></i>
          { content ? 
            content
            :
            <div style={{paddingTop:"3px"}}><p className="font-15 mb20">您确定要删除所有选中的疑修？</p><p className="color-grey-6">此操作将清空所有已选中的疑修，请谨慎操作</p></div>
          }
        </AlignTop>
      </div>
    </Modals>
  )
}
export default DelBox;