import { IMessage } from '@notifire/shared' ; export function sendUrlChange ( url ) { if ( ! window . parentIFrame ) return ; window . parentIFrame . sendMessage ( { type : 'url_change' , url , } ) ; } export function sendNotificationClick ( notification ) { if ( ! window . parentIFrame ) return ; window . parentIFrame . sendMessage ( { type : 'notification_click' , notification , } ) ; }