2020-11-11 17:17:37 +00:00
|
|
|
import {html} from 'htm/preact';
|
2020-11-14 17:24:20 +00:00
|
|
|
import {Link, QComponent, QManifest, Settings} from '../..';
|
2020-11-11 17:17:37 +00:00
|
|
|
|
|
|
|
type FooterProps = {
|
|
|
|
manifest: QManifest;
|
2020-11-14 17:24:20 +00:00
|
|
|
showVersionUpdated: boolean;
|
2020-11-11 17:17:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export function PageFooter(props: FooterProps): QComponent {
|
|
|
|
const version = props.manifest.version;
|
|
|
|
const versionLink = html`<${Link}
|
|
|
|
text="v${version}"
|
|
|
|
url="https://github.com/Holllo/queue/releases/tag/${version}"
|
|
|
|
/>`;
|
|
|
|
|
2020-11-14 17:24:20 +00:00
|
|
|
const versionUpdated = props.showVersionUpdated ? 'Updated to' : '';
|
|
|
|
|
2020-11-11 17:17:37 +00:00
|
|
|
return html`
|
|
|
|
<footer class="page-footer">
|
|
|
|
<p>
|
2020-11-14 17:24:20 +00:00
|
|
|
${versionUpdated} ${versionLink} 🄯 Holllo — Free and open-source,
|
|
|
|
forever.
|
2020-11-11 17:17:37 +00:00
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
`;
|
|
|
|
}
|