import { Component } from "inferno"; import { Helmet } from "inferno-helmet"; import { LocalUserSettingsView } from "lemmy-js-client"; interface Props { localUserView: LocalUserSettingsView | undefined; } export class Theme extends Component { render() { let user = this.props.localUserView; let hasTheme = user && user.local_user.theme !== "browser"; return ( {hasTheme ? ( ) : ( [ , , ] )} ); } }