'use client';

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

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

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