BuilderComponent doesn't work in Next.js 13 server components (using app router)

I’d like to statically generate my site (pages including content are generated as html during build time, e.g. using output: “export”), but when I include

<BuilderComponent content={content} />

on my page, I get an error:

Error: createContext only works in Client Components. Add the “use client” directive at the top of the file to use it.

How can I include builder components in a server component?

The best solution I have found so far is to fetch the page data through the content API in a server component, and pass it to a child client component which contains the imports
BuilderComponent, builder to render the page. This is needed because the different Builder components use React.createContext, which are not supported in a server component.