'use client';

import { useParams, useSearchParams } from 'next/navigation';
import { DepositDetail } from '@/components/accounting/DepositManagement/DepositDetail';

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

  return <DepositDetail depositId={depositId} mode={mode} />;
}