1 import { Component } from "inferno";
2 import { Link } from "inferno-router";
3 import { i18n } from "../i18next";
4 import { repoUrl, joinLemmyUrl, docsUrl } from "../utils";
5 import { GetSiteResponse } from "lemmy-js-client";
7 interface FooterProps {
11 export class Footer extends Component<FooterProps, any> {
12 constructor(props: any, context: any) {
13 super(props, context);
18 <nav class="container navbar navbar-expand-md navbar-light navbar-bg p-0 px-3 mt-2">
19 <div className="navbar-collapse">
20 <ul class="navbar-nav ml-auto">
22 <span class="navbar-text">{this.props.site.version}</span>
24 <li className="nav-item">
25 <Link className="nav-link" to="/modlog">
29 {this.props.site.federated_instances && (
31 <Link className="nav-link" to="/instances">
37 <a className="nav-link" href={docsUrl}>
42 <a className="nav-link" href={repoUrl}>
47 <a className="nav-link" href={joinLemmyUrl}>
48 {i18n.t("join_lemmy")}