1 import { setIsoData } from "@utils/app";
2 import { Component } from "inferno";
3 import { GetSiteResponse } from "lemmy-js-client";
4 import { mdToHtml } from "../../markdown";
5 import { FirstLoadService, I18NextService } from "../../services";
6 import { HtmlTags } from "../common/html-tags";
9 siteRes: GetSiteResponse;
12 export class Legal extends Component<any, LegalState> {
13 private isoData = setIsoData(this.context);
15 siteRes: this.isoData.site_res,
18 constructor(props: any, context: any) {
19 super(props, context);
21 FirstLoadService.isFirstLoad;
24 get documentTitle(): string {
25 return I18NextService.i18n.t("legal_information");
29 const legal = this.state.siteRes.site_view.local_site.legal_information;
31 <div className="legal container-lg">
33 title={this.documentTitle}
34 path={this.context.router.route.match.url}
37 <div className="md-div" dangerouslySetInnerHTML={mdToHtml(legal)} />