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

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

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

export default OverheadClosingTab;
