import{H as e,Q as t,u as n,y as r,z as i}from"./antd-NNbrPHoG.js";import{t as a}from"./i18n-BuHCC44e.js";import{t as o}from"./react-vendor-nIJYBVRh.js";var s=o();function c({confirmTitle:o,onConfirm:c,popconfirmPlacement:l,tooltipTitle:u,...d}){let{t:f}=a(),p=(0,s.jsx)(r,{title:o??f(`common.deleteConfirm`),okText:f(`common.confirm`),cancelText:f(`common.cancel`),okButtonProps:{danger:!0,icon:(0,s.jsx)(n,{})},cancelButtonProps:{icon:(0,s.jsx)(t,{})},placement:l,disabled:d.disabled,onConfirm:c,children:(0,s.jsx)(i,{type:`text`,danger:!0,icon:(0,s.jsx)(n,{}),...d})});return u===null?p:(0,s.jsx)(e,{title:u??f(`common.remove`),children:p})}export{c as t};