'use client';

import ClosingIncomingSapronaksTable from '@/components/pages/closing/ClosingIncomingSapronaksTable';
import ClosingOutgoingSapronaksTable from '@/components/pages/closing/ClosingOutgoingSapronaksTable';

interface ClosingSapronakTableProps {
  projectFlockId?: number;
}

const ClosingSapronakTabContent = ({
  projectFlockId,
}: ClosingSapronakTableProps) => {
  return (
    <div className='flex flex-col gap-4'>
      {projectFlockId && (
        <>
          <ClosingIncomingSapronaksTable projectFlockId={projectFlockId} />

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

export default ClosingSapronakTabContent;
