export default ( id , helperText , errorText , successText , infoText ) : string => { return [ helperText && `${ id }-helper` , errorText && `${ id }-error` , successText && `${ id }-success` , infoText && `${ id }-info` , ] . filter ( ( item ) => item ) . join ( ' ' ) ; } ;