'use client';

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

export default function BendingBasePage() {
  const searchParams = useSearchParams();
  const mode = searchParams.get('mode');

  if (mode === 'new') return <BendingBaseForm mode="new" />;
  return <BendingBaseList />;
}
