import React from 'react'; import { Search } from 'lucide-react'; import { cn } from '~/utils'; const AnimatedSearchInput = ({ value, onChange, isSearching: searching, placeholder, }: { value?: string; onChange: (e: React.ChangeEvent) => void; isSearching?: boolean; placeholder: string; }) => { const isSearching = searching === true; const hasValue = value != null && value.length > 0; return (
{/* Icon on the left */}
{/* Input field */} {/* Gradient overlay */}
{/* Animated loading indicator */}
{/* Outer glow effect */}
); }; export default AnimatedSearchInput;