'use client';

import { useSearchParams } from 'next/navigation';
import { BendingModelList } from '@/components/production/bending/BendingModelList';
import { BendingModelForm } from '@/components/production/bending/BendingModelForm';

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

  if (mode === 'new') return <BendingModelForm mode="new" category="BOTTOMBAR_MODEL" />;
  return <BendingModelList category="BOTTOMBAR_MODEL" />;
}
