diff --git a/source/ts/components/shared-footer.ts b/source/ts/components/shared-footer.ts index c40e86c..eaf8a9c 100644 --- a/source/ts/components/shared-footer.ts +++ b/source/ts/components/shared-footer.ts @@ -2,14 +2,31 @@ import {Component, html} from 'htm/preact'; import ExternalAnchor from './external-anchor.js'; -export default class SharedFooter extends Component { +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`