Building a reusable menu component