export function newPostIsValid ( title , content , uploadsInProgress ) { const hasTitle = title . trim ( ) . length > 0 ; const hasContent = content . trim ( ) . length > 0 ; const noUploadsInProgress = uploadsInProgress < 1 ; return hasTitle && hasContent && noUploadsInProgress ; }