'use client';

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

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

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

  return <PricingListClient />;
}
