'use client';

import { useSearchParams } from 'next/navigation';
import PricingListClient from '@/components/business/construction/pricing-management/PricingListClient';
import { PricingDetailClientV2 } from '@/components/business/construction/pricing-management';

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

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

  return <PricingListClient />;
}
