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

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