import React from 'react'; import { Icon } from 'UI'; import { Popover } from 'antd'; interface Props { payload: any; } function NodeButton(props: Props) { const { payload } = props; const [show, setShow] = React.useState(false); console.log('payload', payload, props) const toggleMenu = (e: React.MouseEvent) => { setShow(!show); }; return (