Wanted to then store an array of DrawerTab[] in a ts file which can be used by my drawer. This is to just separate out the structure from the html.
Am also setting up my app such that you can toggle which tab is visible or not but I would only know this at run time (since the settings of visibility would be stored in the db). So I was thinking that in my Drawer component, I'd import drawerTabs and then for each drawer tab check if the tab is active or not and only add it if it were visible. Only issue there is I'd need to have a map of Route: boolean in the db.
Does this approach make sense or is there a simpler way to do this?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community