'use client';

import { useParams } from 'next/navigation';
import { BadDebtDetail } from '@/components/accounting/BadDebtCollection/BadDebtDetail';

export default function BadDebtDetailPage() {
  const params = useParams();
  const recordId = params.id as string;

  return <BadDebtDetail mode="view" recordId={recordId} />;
}