'use client' import { useState } from 'react' import { useRouter } from 'next/navigation' import { SearchIcon } from 'lucide-react' export default function Search() { const [search, setSearch] = useState('') const router = useRouter() const handleSearch = (e: React.FormEvent) => { e.preventDefault() router.push(`/?search=${encodeURIComponent(search)}`) } return (
) }