queue/source/options/components/page-footer.ts

38 lines
838 B
TypeScript

import {PrivacyLink} from '@holllo/gram';
import {html} from 'htm/preact';
import {Component} from 'preact';
import {Settings} from '../../settings/settings.js';
type Props = {
settings: Settings;
};
export class PageFooter extends Component<Props> {
render() {
const {settings} = this.props;
const version = settings.manifest.version;
const donateLink = html`
<${PrivacyLink} href="https://github.com/sponsors/Bauke">Donate<//>
`;
const versionLink = html`
<${PrivacyLink}
href="https://github.com/Holllo/queue/releases/tag/${version}"
>
v${version}
<//>
`;
return html`
<footer class="page-footer">
<p>
${donateLink} 💖 ${versionLink} © Holllo — Free and open-source,
forever.
</p>
</footer>
`;
}
}