import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Card, CardContent } from "@/components/ui/card"; import { Label } from "@/components/ui/label"; import { Search, Info, XCircle } from "lucide-react"; import { Spinner } from "@/components/ui/spinner"; import { Tooltip, TooltipContent, TooltipTrigger, } from "@/components/ui/tooltip"; interface SearchBarProps { url: string; loading: boolean; onUrlChange: (url: string) => void; onFetch: () => void; } export function SearchBar({ url, loading, onUrlChange, onFetch }: SearchBarProps) { return (

Supports track, album, playlist, and artist URLs

onUrlChange(e.target.value)} onKeyDown={(e) => e.key === "Enter" && onFetch()} className="pr-8" /> {url && ( )}
); }