'use client';

import { FormHeader } from '@/components/helper/form/FormHeader';
import ProjectFlockChickinDetail from '@/components/pages/production/project-flock/chickin/ProjectFlockChickinDetail';
import { useSearchParams } from 'next/navigation';

const AddChickin = () => {
  const searchParams = useSearchParams();
  const projectFlockId = searchParams.get('projectFlockId');

  return (
    <>
      <section className='w-full p-4'>
        <FormHeader
          title='Daftar Kandang Project Flock'
          backUrl='/production/project-flock'
        />
        <ProjectFlockChickinDetail projectFlockId={Number(projectFlockId)} />
      </section>
    </>
  );
};

export default AddChickin;
