export function classNames ( ... classes ) { return classes . filter ( Boolean ) . join ( ' ' ) ; } export function parseQuery ( keyword ) { const urlParams = new URLSearchParams ( window . location . search ) ; return urlParams . get ( keyword ) || "" ; } export function getInitials ( text ) { if ( text == null ) { return "" ; } return text . match ( /(^\S\S?|\b\S)?/g ) ! . join ( "" ) . match ( /(^\S|\S$)?/g ) ! . join ( "" ) . toUpperCase ( ) ; }