33 lines
771 B
TypeScript
33 lines
771 B
TypeScript
import {PrivacyLink} from '@holllo/gram';
|
|
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>
|
|
`;
|
|
}
|
|
}
|