client/src/components/SlateEditor/BlockButton.js
author ymh <ymh.work@gmail.com>
Thu, 06 Dec 2018 01:35:30 +0100
changeset 198 f0f83f5530a6
parent 173 0e6703cd0968
permissions -rw-r--r--
Added tag 0.2.0 for changeset 7ee10198f2e1

import React from 'react';
import { withNamespaces } from 'react-i18next';

export default withNamespaces("")(({icon, isActive, onMouseDown, t}) => (
  <span className={"button sticky-top" + ((!isActive)?" text-primary":" text-dark")} onMouseDown={onMouseDown} data-active={isActive} title={t("common."+icon)} >
    <span className="material-icons">{icon}</span>
  </span>
));