hundreds-psychiatrist-38730
08/20/2025, 7:32 PMimport { Registration } from '@ory/elements-react/theme'
import { getRegistrationFlow, OryPageParams } from '@ory/nextjs/app'
import config from '@/ory.config'
export default async function RegistrationPage(props: OryPageParams) {
const flow = await getRegistrationFlow(config, props.searchParams)
if (!flow) {
return null
}
return (
<Registration
flow={flow}
config={config}
components={{
Card: {}
}}
/>
)
}
wasn't aware that there were that example for getOrCreateRegistrationFlow