'use client';

import IncomingSapronaksTable from '@/components/pages/closing/table/sapronak/IncomingSapronaksTable';
import OutgoingSapronaksTable from '@/components/pages/closing/table/sapronak/OutgoingSapronaksTable';
import IncomingSapronaksSummaryTable from '@/components/pages/closing/table/sapronak/IncomingSapronaksSummaryTable';
import OutgoingSapronaksSummaryTable from '@/components/pages/closing/table/sapronak/OutgoingSapronaksSummaryTable';

interface SapronakClosingTabProps {
  projectFlockId?: number;
}

const SapronakClosingTab = ({ projectFlockId }: SapronakClosingTabProps) => {
  return (
    <div className='flex flex-col gap-4'>
      {projectFlockId && (
        <>
          <IncomingSapronaksTable projectFlockId={projectFlockId} />

          <IncomingSapronaksSummaryTable projectFlockId={projectFlockId} />

          <OutgoingSapronaksTable projectFlockId={projectFlockId} />

          <OutgoingSapronaksSummaryTable projectFlockId={projectFlockId} />
        </>
      )}
    </div>
  );
};

export default SapronakClosingTab;
