'use client';

import { useParams, useSearchParams } from 'next/navigation';
import { BendingBaseForm } from '@/components/production/bending/BendingBaseForm';

export default function BendingBaseDetailPage() {
  const { id } = useParams();
  const searchParams = useSearchParams();
  const mode = searchParams.get('mode') === 'edit' ? 'edit' : 'view';

  return <BendingBaseForm id={id as string} mode={mode} />;
}
