I want to hide some links in my Navbar. There are three different types of user, and each of them will see some other links on the navbar. For example:
User 1 – Link 1 and Link 2
User 2 – Link 3 and Link 4
User 3 – Link 4 and Link 5
Is the right way to use the useState hook and check which type of user is logged in?
If yes could you give me a hint how to start the code?