export const updateQueryParam = (param: string, value: string | number) => {
if (typeof window === "undefined") return;
const url = new URL(window.location.href);
url.searchParams.set(param, `${value}`);
window.history.pushState({}, "", url.href);
};
export const getQueryParam = (param: string) => {
return new URLSearchParams(window.location.search).get(param);
export const removeQueryParam = (param: string) => {
url.searchParams.delete(param);