'use client' import { EventsProvider, useEvents } from '~/app/events/context' import { EventBanner } from '~/components/Events/new/EventBanner' import DefaultLayout from '~/components/Layouts/Default' import { SupabaseEvent } from '~/lib/eventsTypes' import { EventGallery } from './EventGallery' import { EventsContainer } from './EventsContainer' function EventBannerSection() { const { isLoading, featuredEvent, selectedCategories } = useEvents() if (selectedCategories.includes('on-demand')) return null if (!isLoading && !featuredEvent) return null return ( ) } function EventsPageSubtitle() { const { selectedCategories } = useEvents() return (

{selectedCategories.includes('on-demand') ? 'Watch recordings from past webinars and sessions.' : 'Explore upcoming events and on-demand recordings.'}

) } export function EventClientRenderer({ notionEvents, mdxEvents, onDemandMdxEvents, }: { notionEvents: SupabaseEvent[] mdxEvents: SupabaseEvent[] onDemandMdxEvents: SupabaseEvent[] }) { return (

Supabase Events

) }