import { Decorator } from "./types" ; const withClickEvent = ( pym ) => { const handleClick = ( ) => pym . sendMessage ( "click" , "" ) ; document . addEventListener ( "click" , handleClick , true ) ; return ( ) => { document . removeEventListener ( "click" , handleClick , true ) ; } ; } ; export default withClickEvent ;