diff --git a/src/pages/llmodels/components/model-item.tsx b/src/pages/llmodels/components/model-item.tsx new file mode 100644 index 00000000..2cc94b4f --- /dev/null +++ b/src/pages/llmodels/components/model-item.tsx @@ -0,0 +1,20 @@ +import Card from '@/components/templates/card'; +import React from 'react'; + +const ModelItem: React.FC<{ model: any; onDeploy: (model: any) => void }> = ( + props +) => { + const { model, onDeploy } = props; + + return ( + +
onDeploy(model)}> +

{model.name}

+

{model.description}

+ Deploy +
+
+ ); +}; + +export default ModelItem; diff --git a/src/pages/llmodels/user-models.tsx b/src/pages/llmodels/user-models.tsx index d23bb2af..6f538e19 100644 --- a/src/pages/llmodels/user-models.tsx +++ b/src/pages/llmodels/user-models.tsx @@ -2,6 +2,7 @@ import { FilterBar } from '@/components/page-tools'; import { PageContainer } from '@ant-design/pro-components'; import { useIntl } from '@umijs/max'; import React from 'react'; +import ModelItem from './components/model-item'; const UserModels: React.FC = () => { const intl = useIntl(); @@ -12,6 +13,15 @@ const UserModels: React.FC = () => { const handleInputChange = () => {}; + const handleOnDeploy = (model: any) => { + // Implement deploy functionality here + console.log('Deploying model:', model); + }; + + const renderCard = (data: any) => { + return ; + }; + return ( { handleSearch={handleSearch} width={{ input: 200 }} > + {/* */} ); };