import { LocalUserSettingsView } from "lemmy-js-client"; import { Helmet } from "inferno-helmet"; import { Component } from "inferno"; 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 ? ( ) : ( [ , , ] )} ); } }