'use client';

import ClosingSapronakCalculationTable from '@/components/pages/closing/ClosingSapronakCalculationTable';
import { ClosingGeneralInformation } from '@/types/api/closing';

interface ClosingSapronakCalculationTabContentProps {
  projectFlockId?: number;
  closingGeneralInformation?: ClosingGeneralInformation;
}

const ClosingSapronakCalculationTabContent = ({
  projectFlockId,
  closingGeneralInformation,
}: ClosingSapronakCalculationTabContentProps) => {
  return (
    <div className='flex flex-col gap-4'>
      {projectFlockId && (
        <>
          <ClosingSapronakCalculationTable
            closingGeneralInformation={closingGeneralInformation}
            projectFlockId={projectFlockId}
          />
        </>
      )}
    </div>
  );
};

export default ClosingSapronakCalculationTabContent;
