'use client';

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

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

  return <BendingModelForm id={id as string} mode={mode} category="BOTTOMBAR_MODEL" />;
}
