'use client'; import { Search, X } from 'lucide-react'; import { Input } from '@/components/ui/input'; import { Button } from '@/components/ui/button'; interface LogSearchProps { value: string; onChange: (value: string) => void; placeholder?: string; } export function LogSearch({ value, onChange, placeholder = 'Search logs...' }: LogSearchProps) { return (
onChange(e.target.value)} className="pl-9 pr-9" /> {value && ( )}
); }