'use client';

import dynamic from 'next/dynamic';

/**
 * Client-side wrapper for the Chatbot component.
 * Uses dynamic import with ssr: false to prevent hydration issues
 * with browser-only APIs like localStorage.
 */
const Chatbot = dynamic(
  () => import('./Chatbot').then((mod) => mod.Chatbot),
  { ssr: false }
);

export function ChatbotLoader() {
  return <Chatbot />;
}
