import { useState } from 'react'; import { Search, X } from 'lucide-react'; import { Dialog, DialogContent } from '@/components/ui/dialog'; import { Input } from '@/components/ui/input'; import { Button } from '@/components/ui/button'; import { SearchResults } from './SearchResults'; interface MobileSearchProps { open: boolean; onOpenChange: (open: boolean) => void; } export function MobileSearch({ open, onOpenChange }: MobileSearchProps) { const [query, setQuery] = useState(''); const handleClose = () => { setQuery(''); onOpenChange(false); }; return (
{/* Search Header */}
setQuery(e.target.value)} className="pl-10 pr-3 h-11 text-sm w-full" />
{/* Search Results */}
{query.length >= 1 ? ( ) : (

Start searching

Find parks, rides, and manufacturers

)}
); }