import { getEvent } from "@venuecms/sdk";
import { ContentRender, type RenderNode } from "@/lib/utils/renderer";
const { data: event } = await getEvent({ slug });
// If the event is not found, you should do something like a 404
if (!event) {
notFound();
}
const { localizedContent, location, artists } = event;
// Get the content in a localized form (usually locale is pulled from somewhere like your url params)
const { content } = getLocalizedContent(event.localizedContent, locale);
// Render content for the event
return (
<div>
<VenueContent classes={renderedStyles} content={content} />
</div>
);