import { User } from 'lemmy-js-client'; import { Helmet } from 'inferno-helmet'; import { Component } from 'inferno'; interface Props { user: User | undefined; } export class Theme extends Component { render() { const { user } = this.props; const userTheme = user && user.theme && ( ); return ( {userTheme ?? ( <> )} ); } }