I have the following folder structure:
app/[campaignId]/play/@modal/roll/page.tsx
Based on tthe docs, I would expect if I visited the path: /123/play/roll, the modal would be open. However, when I visit that path, I get a page not found error.
Here is my layout.tsx within the play directory:
'use client'
import { CampaignPlayContextProvider } from 'app/providers/CampaignPlayProvider'
export default function PlayLayout({
children,
params,
modal,
}: {
children: React.ReactNode
modal: React.ReactNode
params: {
campaignId: string
}
}) {
return (
<CampaignPlayContextProvider campaignId={params.campaignId}>
<div className="self-end">
{modal}
{children}
</div>
</CampaignPlayContextProvider>
)
}
What am I doing wrong?