'use client'; import { Search, X } from 'lucide-react'; import React from 'react'; import { Input } from '@djangocfg/ui-core/components'; import { cn } from '@djangocfg/ui-core/lib'; interface SearchInputProps { value: string; onChange: (v: string) => void; placeholder?: string; } /** Search field with a leading icon and a trailing clear button. The * clear button only appears when there's something to clear so the * idle state reads as a single clean input rather than "icon + input * + mystery button". */ export function SearchInput({ value, onChange, placeholder }: SearchInputProps) { return (