client/src/components/SlateEditor/BlockButton.js
author ymh <ymh.work@gmail.com>
Thu, 29 Jul 2021 16:46:43 +0200
changeset 208 d7998288c2d8
parent 173 0e6703cd0968
permissions -rw-r--r--
Added tag 0.2.3 for changeset c39d91bd16af

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>
));