export const classNames = ( classes ) : string => { const result = [ ] ; Object . keys ( classes ) . forEach ( ( clazz ) => { if ( clazz && classes [ clazz ] ) { result . push ( clazz ) ; } } ) ; return result . join ( ' ' ) ; } ;