import React from 'react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; import { TrendingUp } from 'lucide-react'; import { ConfigComponentProps } from '../types'; const WandbConfig: React.FC = ({ config, updateConfig }) => { return (
Weights & Biases
updateConfig("wandb_enable", checked) } />
{config.wandb_enable && ( <>
updateConfig( "wandb_project", e.target.value || undefined ) } placeholder="my-robotics-project" className="bg-slate-900 border-slate-600 text-white rounded-lg" />
updateConfig( "wandb_entity", e.target.value || undefined ) } placeholder="your-username" className="bg-slate-900 border-slate-600 text-white rounded-lg" />
updateConfig( "wandb_notes", e.target.value || undefined ) } placeholder="Training run notes..." className="bg-slate-900 border-slate-600 text-white rounded-lg" />
updateConfig("wandb_disable_artifact", checked) } />
)}
); }; export default WandbConfig;