30 lines
754 B
TypeScript
30 lines
754 B
TypeScript
import {PrivacyLink} from '@holllo/preact-components';
|
|
import {html} from 'htm/preact';
|
|
import {Component} from 'preact';
|
|
|
|
import type {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 versionAttributes = {
|
|
href: `https://git.bauke.xyz/Holllo/queue/releases/tag/${version}`,
|
|
};
|
|
const versionLink = html`
|
|
<${PrivacyLink} attributes="${versionAttributes}">v${version}<//>
|
|
`;
|
|
|
|
return html`
|
|
<footer class="page-footer">
|
|
<p>💖 ${versionLink} © Holllo — Free and open-source, forever.</p>
|
|
</footer>
|
|
`;
|
|
}
|
|
}
|