export const scrollToElement = ( elementId: string, position: ScrollLogicalPosition = 'start', ) => { const element = document.getElementById(elementId); element?.scrollIntoView({ block: position, behavior: 'smooth', }); };