My Root Layout contains my main navigation component which needs to have a header for example 'Library' on one page and 'Configuration' on a another. Is there a way to write my root layout such that the main navigation component inside it updates based on the page with a configurable header?
I've been trying to do it with metadata passing the title as prop to my nav component but that doesn't seem possible from that I've gathered from the docs and other stackoverflow posts.
Thanks in advance.