const CircleArrow = () => ` `; export const addFixturesPageLink = (element: Element, pageUrl: string = '') => { const fixturesPageUrlWrapper = Object.assign(document.createElement('div'), { className: 'fixtures-page-link Opta-fixture' }); const link = Object.assign(document.createElement('a'), { href: pageUrl }); const linkText = Object.assign(document.createElement('span'), { textContent: 'Full Fixtures & Results' }); link.appendChild(linkText); link.insertAdjacentHTML('beforeend', CircleArrow()); fixturesPageUrlWrapper.appendChild(link); element.appendChild(fixturesPageUrlWrapper); element.setAttribute('data-has-fixtures-page-link', 'true'); };