'use client';

import { useParams, useSearchParams } from 'next/navigation';
// V2 테스트: 새 훅 적용 버전
import { BillDetail } from '@/components/accounting/BillManagement/BillDetail';

export default function BillDetailPage() {
  const params = useParams();
  const searchParams = useSearchParams();
  const billId = params.id as string;
  const mode = searchParams.get('mode') === 'edit' ? 'edit' : 'view';

  return <BillDetail billId={billId} mode={mode} />;
}
