as seen in NextJS Doc:
The generateStaticParams function can be used in combination with dynamic route segments to statically generate routes at build time instead of on-demand at request time.
so i need to create a dynamic route using /app/[dynamicroutename]/page.tsx to make it work.
my doubt is: how can i create a component that will be children of a main (not dynamic) route file like /app/example/page.tsx
and /app/example/ChildrenComponent.tsx
and still use generateStaticParams to fetch data inside ChildrenComponent and static generate it at build time?
i tried to use generateStaticParams in a non-dynamic route but it doesnt work as expected