client/src/components/SlateEditor/BlockButton.js
author ymh <ymh.work@gmail.com>
Tue, 29 Mar 2022 11:23:56 +0200
changeset 211 244a90638e80
parent 173 0e6703cd0968
permissions -rw-r--r--
Added tag 0.2.3 for changeset 3de92ddba2de

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