"use client"; import { useCollections, useGenres } from "@/hooks/use-library"; import type { LibrarySearchParams } from "@/hooks/use-library-search"; import { Input } from "@/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Badge } from "@/components/ui/badge"; interface Props { filter: LibrarySearchParams; onFilterChange: (next: Partial) => void; } const CONTENT_TYPES = [ { value: "", label: "All types" }, { value: "movie", label: "Movies" }, { value: "episode", label: "Episodes" }, { value: "short", label: "Shorts" }, ]; export function LibrarySidebar({ filter, onFilterChange }: Props) { const { data: collections } = useCollections(filter.provider); const { data: genres } = useGenres(filter.type, { provider: filter.provider }); return ( ); }