import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { MagnifyingGlass } from '@phosphor-icons/react' type KnowledgeBaseSearchPanelProps = { searchQuery: string onSearchChange: (value: string) => void text: { title: string description: string searchPlaceholder: string } } export function KnowledgeBaseSearchPanel({ searchQuery, onSearchChange, text, }: KnowledgeBaseSearchPanelProps) { return ( {text.title} {text.description}
onSearchChange(e.target.value)} placeholder={text.searchPlaceholder} className="w-full pl-10 pr-4 py-3 rounded-lg border border-border/50 bg-secondary/50 text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent/50" />
) }