Client Side Options (App Dir)
Handle client-side options for the consent manager in Next.js App Directory.
In React some ConsentManagerProvider options including callbacks and scripts cannot be serialized and sent to the client from the server. This is why we have the ClientSideOptionsProvider component.
It is important to note that this component is not used in the Pages Directory. If you'd like to use a full client-side solution, you can use the <ConsentManagerProvider /> component from @c15t/nextjs/client.
Usage
Next, you should import this component to be inside your ConsentManagerProvider component.
API Reference
ClientSideOptionsProviderProps
The main component accepts these props: