import BridgeFunction from './bridgeFunction'; import { toast } from 'react-toastify'; class Present extends BridgeFunction { name = 'present'; protected async executeFunction() { if (this.functionContext?.url && this.functionContext?.url.length > 0) { const win = window.open(this.functionContext?.url, '_blank'); if (win) { win.focus(); } else { //Browser has blocked it toast.error('Please allow popups for this website'); } } } } export default Present;