Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516import slugify from "@sindresorhus/slugify";
export const getAnchor = (value: any) => { const isString = typeof value === "string";
return isString ? slugify(value) : "";};
export const scrollTo = (id: string) => { const element = document.getElementById(id);
if (element) { element.scrollIntoView({ behavior: "smooth", block: "start" }); }};