import React from 'react' import usePopup from 'hooks/usePopup' const Popup = () => { const { popupData: p } = usePopup() if (!p || !p.content) return null return (
{p.content}
{ (p.yes || p.no) && (
{[p.no, p.yes].map(a => a && a.action()} value={a.label} />)}
) }
) } export default Popup