'use client';

import { useSearchParams } from 'next/navigation';
import { LaborManagementClient, LaborDetailClientV2 } from '@/components/business/construction/labor-management';

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

  if (mode === 'new') {
    return <LaborDetailClientV2 initialMode="create" />;
  }

  return <LaborManagementClient />;
}
