index.jsx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. Copyright (C) 2025 QuantumNous
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <https://www.gnu.org/licenses/>.
  13. For commercial licensing, please contact support@quantumnous.com
  14. */
  15. import React from 'react';
  16. import DeploymentsTable from '../../components/table/model-deployments';
  17. import DeploymentAccessGuard from '../../components/model-deployments/DeploymentAccessGuard';
  18. import { useModelDeploymentSettings } from '../../hooks/model-deployments/useModelDeploymentSettings';
  19. const ModelDeploymentPage = () => {
  20. const {
  21. loading,
  22. isIoNetEnabled,
  23. connectionLoading,
  24. connectionOk,
  25. connectionError,
  26. testConnection,
  27. } = useModelDeploymentSettings();
  28. return (
  29. <DeploymentAccessGuard
  30. loading={loading}
  31. isEnabled={isIoNetEnabled}
  32. connectionLoading={connectionLoading}
  33. connectionOk={connectionOk}
  34. connectionError={connectionError}
  35. onRetry={() => testConnection()}
  36. >
  37. <div className='mt-[60px] px-2'>
  38. <DeploymentsTable />
  39. </div>
  40. </DeploymentAccessGuard>
  41. );
  42. };
  43. export default ModelDeploymentPage;