I want to reuse a menu I made in react with react-router-dom, but this time in nextjs. The goal is to change the state of the menu to \'false\' and the menuName to \'menu\' when