'use client' import { ConvexProvider, ConvexReactClient } from 'convex/react' import type { ReactNode } from 'react' if (!process.env.NEXT_PUBLIC_CONVEX_URL) { throw new Error('Missing NEXT_PUBLIC_CONVEX_URL in your .env file') } const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL) export function ConvexClientProvider({ children }: { children: ReactNode }) { return {children} }