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