'use client';

import { useSearchParams } from 'next/navigation';
import { StructureReviewListClient, StructureReviewDetailForm } from '@/components/business/construction/structure-review';

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

  if (mode === 'new') {
    return <StructureReviewDetailForm mode="new" />;
  }

  return <StructureReviewListClient />;
}
