import {Component, html} from 'htm/preact'; import ExternalAnchor from './external-anchor.js'; type Props = { page: string; }; export default class SharedFooter extends Component { render() { const {page} = this.props; const homeLink = page === 'home' || page === 'not-found' ? undefined : html`Home${' '}`; const settingsLink = page === 'settings' ? undefined : html`Settings${' '}`; const githubUrl = 'https://github.com/Bauke/href-plus'; const versionText = `v${hrefPlusVersion}/${hrefPlusCommitHash}`; const versionUrl = `${githubUrl}/tree/${hrefPlusCommitHash}`; return html` `; } }