Use direct descendant selectors for styles
Clean up large if statement, use title property for the title.
add className as a default
Replace join with + in return, remove console log