import { useState } from "react"; import { Search, Play, Menu, Grid3X3, List } from "lucide-react"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; interface SearchHeaderProps { onSearch: (query: string) => void; onCategoryChange: (category: string) => void; onSortChange: (sort: string) => void; onViewChange: (view: "grid" | "list") => void; categories: string[]; currentView: "grid" | "list"; } export default function SearchHeader({ onSearch, onCategoryChange, onSortChange, onViewChange, categories, currentView }: SearchHeaderProps) { const [searchQuery, setSearchQuery] = useState(""); const handleSearchChange = (value: string) => { setSearchQuery(value); onSearch(value); }; return (

VideoStream

handleSearchChange(e.target.value)} className="bg-bunny-dark border border-gray-600 rounded-lg px-4 py-2 pl-10 text-sm focus:outline-none focus:border-bunny-blue transition-colors w-64" data-testid="input-search" />
{/* Filter Bar */}

Video Library

Streaming from Bunny.net CDN

); }