'use client';

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

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

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

  return <LaborManagementClient />;
}
