import { Navigate, useSearchParams } from "react-router-dom";

export function SearchPage() {
  const [sp] = useSearchParams();
  const query = sp.toString();
  return <Navigate to={`/browse${query ? `?${query}` : ""}`} replace />;
}
