Sha256: bfa917cb4d377ab3b61690a65d1a8765faf5439237b28f7ec23621fa66b8938a

Contents?: true

Size: 1.19 KB

Versions: 51

Compression:

Stored size: 1.19 KB

Contents

import React from 'react';
import { router, Link, usePage } from "@inertiajs/react";
import { useInertiaForm } from "use-inertia-form";
import { ArrowLeft, Brain } from 'lucide-react';
import { ModelForm } from '../components/ModelForm';
import { Model, Dataset } from '../types';

interface ModelFormData {
  model: Model;
}

interface PageProps {
  model: Model;
  datasets: Dataset[];
  constants: {
    modelTypes: string[];
    tasks: string[];
    objectives: string[];
    metrics: string[];
  };
}

export default function EditModelPage({ model, datasets, constants }: PageProps) {
  return (
    <div className="max-w-3xl mx-auto py-8">
      <div className="bg-white rounded-lg shadow-lg">
        <div className="px-6 py-4 border-b border-gray-200">
          <div className="flex items-center gap-3">
            <Brain className="w-6 h-6 text-blue-600" />
            <h2 className="text-xl font-semibold text-gray-900">Edit Model</h2>
          </div>
        </div>

        <div className="p-6">
          <ModelForm
            initialData={model}
            datasets={datasets}
            constants={constants}
            isEditing={true}
          />
        </div>
      </div>
    </div>
  );
}

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc52 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc51 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc50 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc49 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc48 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc47 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc46 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc45 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc44 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc43 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc41 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc40 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc39 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc38 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc37 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc36 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc35 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc34 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc33 app/frontend/pages/EditModelPage.tsx
easy_ml-0.2.0.pre.rc32 app/frontend/pages/EditModelPage.tsx