1
Fork 0
tildes-shepherd/source/options/components/page-footer.tsx

42 lines
936 B
TypeScript
Raw Permalink Normal View History

2023-06-16 08:06:38 +00:00
import {Component} from "preact";
import browser from "webextension-polyfill";
export class PageFooter extends Component {
render() {
const manifest = browser.runtime.getManifest();
const copyright = (
<p>
&copy;{" "}
<a
target="_blank"
2023-07-23 09:59:33 +00:00
href="https://gitlab.com/tildes-community/tildes-shepherd/-/blob/main/LICENSE"
2023-06-16 08:06:38 +00:00
>
AGPL-3.0-or-later
</a>
</p>
);
const messageCommunity = (
<a target="_blank" href="https://tildes.net/user/Community/new_message">
Message @Community
</a>
);
const version = (
<a
target="_blank"
2023-07-23 09:59:33 +00:00
href={`https://gitlab.com/tildes-community/tildes-shepherd/-/releases/${manifest.version}`}
2023-06-16 08:06:38 +00:00
>
v{manifest.version}
</a>
);
return (
<footer class="page-footer">
{messageCommunity} / {version} / {copyright}
</footer>
);
}
}