import TransferToLayingsTable from '@/components/pages/production/transfer-to-laying/TransferToLayingsTable';
import TransferToLayingFormModal from '@/components/pages/production/transfer-to-laying/TransferToLayingFormModal';
import TransferToLayingDetailModal from '@/components/pages/production/transfer-to-laying/TransferToLayingDetailModal';
import RequirePermission from '@/components/helper/RequirePermission';

const TransferToLaying = () => {
  return (
    <section className='w-full'>
      <TransferToLayingsTable />

      <RequirePermission
        permissions={[
          'lti.production.transfer_to_laying.create',
          'lti.production.transfer_to_laying.update',
        ]}
      >
        <TransferToLayingFormModal />
      </RequirePermission>

      <RequirePermission permissions='lti.production.transfer_to_laying.detail'>
        <TransferToLayingDetailModal />
      </RequirePermission>
    </section>
  );
};

export default TransferToLaying;
