import ClosingOverheadTable from '@/components/pages/closing/ClosingOverheadTable';
import { ClosingGeneralInformation } from '@/types/api/closing';
import { ProjectFlockKandang } from '@/types/api/production/project-flock-kandang';

interface ClosingOverheadTabContentProps {
  projectFlockId: number;
  generalInformation?: ClosingGeneralInformation;
  kandangData?: ProjectFlockKandang;
}

const ClosingOverheadTabContent = ({
  projectFlockId,
  generalInformation,
  kandangData,
}: ClosingOverheadTabContentProps) => {
  return (
    <div className='flex flex-col gap-4'>
      {projectFlockId && (
        <ClosingOverheadTable
          projectFlockId={projectFlockId}
          generalInformation={generalInformation}
          kandangData={kandangData}
        />
      )}
    </div>
  );
};

export default ClosingOverheadTabContent;
