'use client';

/**
 * 출하관리 - 목록/등록 페이지
 * URL: /outbound/shipments
 * URL: /outbound/shipments?mode=new
 */

import { useSearchParams } from 'next/navigation';
import { ShipmentList, ShipmentCreate } from '@/components/outbound/ShipmentManagement';

export default function ShipmentsPage() {
  const searchParams = useSearchParams();
  const mode = searchParams.get('mode');

  if (mode === 'new') {
    return <ShipmentCreate />;
  }

  return <ShipmentList />;
}
