I am building a project in Next. Currently, I have a custom App component that mounts a Header and Footer component.
Now I want to populate the content of the header/footer from an API (at build time since it won't change very frequently). However, getStaticProps is only available for pages, not components.
How do I fetch the data at build time and pass it to the header/footer components?