import isTruthy from '@proton/shared/lib/helpers/isTruthy' ; let current = 0 ; export const generateUID = ( prefix ? ) => `${ prefix || 'id' }-${ current ++ }` ; export const fakeEvent = < T > ( value ) => ( { target : { value } } ) ; export const concatStringProp = ( strings = [ ] ) => { return strings . filter ( isTruthy ) . join ( ' ' ) . trim ( ) ; } ; /**
 * Join CSS classes into string for className prop
 */ export const classnames = ( classNames = [ ] ) => { return concatStringProp ( classNames ) ; } ;