Spaces:
Running
Running
File size: 1,357 Bytes
3a909c0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
import React from 'react';
import { Button } from '@/components/ui/button';
import { Settings, Activity } from 'lucide-react';
type Tab = 'config' | 'monitoring';
interface TrainingTabsProps {
activeTab: Tab;
setActiveTab: (tab: Tab) => void;
}
const TrainingTabs: React.FC<TrainingTabsProps> = ({ activeTab, setActiveTab }) => {
return (
<div className="flex gap-2 mb-6 border-b border-slate-700">
<Button
variant="ghost"
onClick={() => setActiveTab("config")}
className={`flex items-center gap-2 rounded-none px-4 py-3 text-sm font-semibold transition-colors ${
activeTab === "config"
? "text-white border-b-2 border-white"
: "text-slate-400 hover:bg-slate-800 hover:text-white"
}`}
>
<Settings className="w-4 h-4" />
Configuration
</Button>
<Button
variant="ghost"
onClick={() => setActiveTab("monitoring")}
className={`flex items-center gap-2 rounded-none px-4 py-3 text-sm font-semibold transition-colors ${
activeTab === "monitoring"
? "text-white border-b-2 border-white"
: "text-slate-400 hover:bg-slate-800 hover:text-white"
}`}
>
<Activity className="w-4 h-4" />
Monitoring
</Button>
</div>
);
};
export default TrainingTabs;
|