1 import { Component } from "inferno";
2 import { GetSiteResponse } from "lemmy-js-client";
3 import { i18n } from "../../i18next";
4 import { mdToHtml, setIsoData } from "../../utils";
5 import { HtmlTags } from "../common/html-tags";
8 siteRes: GetSiteResponse;
11 export class Legal extends Component<any, LegalState> {
12 private isoData = setIsoData(this.context);
14 siteRes: this.isoData.site_res,
17 constructor(props: any, context: any) {
18 super(props, context);
21 get documentTitle(): string {
22 return i18n.t("legal_information");
26 let legal = this.state.siteRes.site_view.local_site.legal_information;
28 <div className="container-lg">
30 title={this.documentTitle}
31 path={this.context.router.route.match.url}
34 <div className="md-div" dangerouslySetInnerHTML={mdToHtml(legal)} />