import { Popconfirm as AntPopconfirm, PopconfirmProps } from 'antd'

const Popconfirm = (props: PopconfirmProps) => {

  const disabled = props.disabled

  let attr = {}
  if (typeof disabled !== 'undefined') {
    attr = {
      disabled: disabled
    }
  }

  return (
          <AntPopconfirm {...props}>
            <a  {...attr}>{props.children}</a>
          </AntPopconfirm>
  )
}

export default Popconfirm