import React from 'react'; import { Globe, FileText, GitMerge, Lock } from 'lucide-react'; import { useApp } from '../../context/AppContext'; import type { QueryMode } from '../../types'; const modes: { id: QueryMode; label: string; icon: React.ReactNode; description: string }[] = [ { id: 'web', label: 'Web Search', icon: , description: 'Search the web for information', }, { id: 'pdf', label: 'PDF Only', icon: , description: 'Query only uploaded documents', }, { id: 'hybrid', label: 'Hybrid', icon: , description: 'Combine web and document search', }, { id: 'restricted', label: 'Restricted', icon: , description: 'Safe mode with content filtering', }, ]; export const ModeSelector: React.FC = () => { const { state, dispatch } = useApp(); return (
{modes.map(mode => ( ))}
); };