I'm using nextjs app router. I have routes /learn and /learn/[threadID] where if the threadID is provided it'll open the chat modal on screen. The issue is I have a duplicate page.tsx in both learn/ and threadID/.
└── learn/
├── threadID/
│ └── page.tsx <- duplicate content
├── page.tsx
└── layout.tsx```
So far, I've thought of putting all page content *except* the chat modal in `layout.tsx`, and the closed modal in `page.tsx` in `/learn` and the open modal in `page.tsx` in `learn/[threadID]/`. This just seems a bit odd though. Any ideas please?