import React from 'react'; import { Button, Popconfirm } from 'antd'; interface Props { disable: boolean onCancel: () => any onOk: () => any onEdit: () => any } export default function Index({disable = false, onCancel = () => null, onOk = () => null, onEdit = () => null}: Props) { return ( {disable ? ( <> ) : ()} ); }