'use client';

import { useSearchParams } from 'next/navigation';
import { SiteBriefingListClient, SiteBriefingForm } from '@/components/business/construction/site-briefings';

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

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

  return <SiteBriefingListClient />;
}
