webhooks would be good here, but are you using ele...
# general
e
webhooks would be good here, but are you using elements react? https://github.com/ory/elements/tree/main/packages/elements-react It should have the ability tie into this.
h
Hey Jeff, so I'm trying again with fresh eyes to look at the readme.md in the elements-react package.
export default async function RegistrationPage({ searchParams }: PageProps) {
Trying that, just with login, but
PageProps
doesn't exists anywhere. i'm kinda jerry rigging stuff to try get it to work 😞
e
Do you have a repo we can look at?
h
basically just https://github.com/ory/elements/tree/main/packages/elements-react scroll down to
Full Example
then below it's saying how to render
<Registration />
And it's using
PageProps
but there are no reference to that in the
Elements
codebase i searched on github 🙂
e
AppProps and PageProps are a concept from NextJS: https://nextjs.org/docs/pages/building-your-application/routing/custom-app
It's part of the router to pass properties between componants.
h
just "funny" webstorm didn't suggest import
but great to know
ohhh
page router..
e
Yeah the approuter will have an example with the app router if you need it I believe.
h
on my way to the docs 😛
h
already on it
and also kinda past it 😛
oka, i guess it works but webstorm might just be weird and can't find it even though it's globally available in next
as per docs for 15.5