'use client';

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

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

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

export default SapronakCalculationClosingTab;
