At the dashboard of my project the user can click on a card and will navigate to a page. The problem is that the dashboard could have up to 50 cards, so is not good to create 50 pages. So I want to make one page and add dynamically everything in it.
The page that I need to navigate to has a list of items from supabase. Each card will correspond to a table.
My question is how is the best way to do this? Because if the dashboard ended up having 50 cards, I will have to do 50 "if else" to know from witch table it will be render at the page?