import { msgTypes } from './msgTypes' ; export default function showMsg ( type , text ) { parent . postMessage ( { pluginMessage : { type : 'showMsg' , notifyText : `${ msgTypes [ type ] . icon } ${ text }` } } , '*' ) ; }