export default function (hash) { const element = document.getElementById(hash) element.scrollIntoView({ behavior: 'smooth' }) }