export default class UIConfirm{

    static showConfirm:(message:string,postEvent:()=>any)=>any;

    static registerImpl(showConfirm:(message:string,postEvent:()=>any)=>any){
        if(typeof showConfirm === 'function'){
            UIConfirm.showConfirm = showConfirm;
        }
    }

    static show(message:string,postEvent){
        UIConfirm.showConfirm && UIConfirm.showConfirm(message,postEvent);
    }

}
