'use client';

import { use } from 'react';
import { BadDebtDetailClientV2 } from '@/components/accounting/BadDebtCollection';

interface BadDebtDetailPageProps {
  params: Promise<{ id: string }>;
}

export default function BadDebtDetailPage({ params }: BadDebtDetailPageProps) {
  const { id } = use(params);
  return <BadDebtDetailClientV2 recordId={id} />;
}
