import React, { useState } from 'react' import { Button, Flex, PbReactPopover, } from '../..' const PopoverClose = (props) => { const [showInsidePopover, setInsideShowPopover] = useState(false) const [showOutsidePopover, setOutsideShowPopover] = useState(false) const [showAnyPopover, setAnyShowPopover] = useState(false) const handleInsideShouldClosePopover = (shouldClosePopover) => { setInsideShowPopover(!shouldClosePopover) } const handleInsideTogglePopover = () => { setInsideShowPopover(!showInsidePopover) } const handleOutsideShouldClosePopover = (shouldClosePopover) => { setOutsideShowPopover(!shouldClosePopover) } const handleOutsideTogglePopover = () => { setOutsideShowPopover(!showOutsidePopover) } const handleAnyShouldClosePopover = (shouldClosePopover) => { setAnyShowPopover(!shouldClosePopover) } const handleAnyTogglePopover = () => { setAnyShowPopover(!showAnyPopover) } const insidePopoverTrigger = (