+import classNames from "classnames";
import { Component } from "inferno";
import { Link } from "inferno-router";
import { Person } from "lemmy-js-client";
{!this.props.realLink ? (
<Link
title={apubName}
- className={`d-inline-flex align-items-baseline ${
- this.props.muted ? "text-muted" : "text-info"
- }`}
+ className={classNames("d-inline-flex align-items-baseline", {
+ "text-muted": this.props.muted,
+ "text-info": !this.props.muted,
+ })}
to={link}
>
{this.avatarAndName(displayName)}