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

42 lines
948 B
TypeScript
Raw 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"
href="https://git.bauke.xyz/tildes-community/tildes-shepherd/src/branch/main/LICENSE"
>
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"
href={`https://git.bauke.xyz/tildes-community/tildes-shepherd/releases/tag/${manifest.version}`}
>
v{manifest.version}
</a>
);
return (
<footer class="page-footer">
{messageCommunity} / {version} / {copyright}
</footer>
);
}
}