Question d’entretien chez trivago

How would you rewrite/optimise this component? (Example given)