'use client';

import { useSearchParams } from 'next/navigation';
import { ItemManagementClient, ItemDetailClient } from '@/components/business/construction/item-management';

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

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

  return <ItemManagementClient />;
}
