'use client';
import React from "https://esm.sh/react@19.1.1";
import { useEffect, useState } from 'https://esm.sh/react@19.1.1';

export function ClientOnly({ children }: { children: React.ReactNode }) {
  const [mounted, setMounted] = useState(false);
  useEffect(() => setMounted(true), []);
  return mounted ? <>{children}</> : null;
}