export default function (element: string) {
    const elementInDom = document.querySelector(element);
    if (elementInDom) {
        elementInDom.scrollIntoView({
            behavior: 'smooth',
            block: 'start',
            inline: 'nearest',
        });
    }
}
