his);
    this.onNameMouseOut = this.onNameMouseOut.bind(this);
  }

  onNameMouseOver() {
    const { font, onToggleFontHighlight } = this.props;

    onToggleFontHighlight(font, true);
  }

  onNameMouseOut() {
    const { font, onToggleFontHighlight } = this.props;

    onToggleFontHighlight(font, false);
  }

  render() {
    return dom.span(
      {
        className: "font-name",
        onMouseOver: this.onNameMouseOver,
        onMouseOut: this.onNameMouseOut,
      },
      this.props.font.name
    );
  }
}

module.exports = FontName;
PK