'use client';

import { useSearchParams } from 'next/navigation';
import { MessagingPage } from '@/components/message';

export default function AgentMessagePage() {
  const searchParams = useSearchParams();
  const conversationId = searchParams.get('conversationId');

  return (
    <div className="max-w-7xl mx-auto px-4 lg:px-8 py-6">
      <MessagingPage initialConversationId={conversationId} />
    </div>
  );
}
