How to load or display the navbar links in Custom File?

Hello discussion forum members,

How can I load or display the navbar links from the main project (in version 2026) inside a custom file page only — I just want to show the same links that appear in the project’s navbar.