import { X } from 'lucide-react' import PipelineSelector from './PipelineSelector' import ModelSelector from './ModelSelector' import ModelInfo from './ModelInfo' import { useModel } from '../contexts/ModelContext' import TextGenerationConfig from './TextGenerationConfig' import FeatureExtractionConfig from './FeatureExtractionConfig' interface SidebarProps { isOpen: boolean onClose: () => void } const Sidebar = ({ isOpen, onClose }: SidebarProps) => { const { pipeline, setPipeline } = useModel() return ( <> {/* Overlay */} {isOpen && (
)} {/* Sidebar */}
{/* Header */}

Configuration

{/* Content */}
{/* Pipeline Selection */}

Choose a Pipeline

{/* Model Selection */}

Select Model

{/* Model Info */}

{pipeline === 'text-generation' && } {pipeline === 'feature-extraction' && }
) } export default Sidebar