'use client';

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

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

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