| author | ymh <ymh.work@gmail.com> |
| Tue, 29 Mar 2022 11:23:56 +0200 | |
| changeset 211 | 244a90638e80 |
| parent 173 | 0e6703cd0968 |
| permissions | -rw-r--r-- |
import React from 'react'; import { withNamespaces } from 'react-i18next'; /** * Render a mark-toggling toolbar button. * * @param {String} type * @param {String} icon * @return {Element} */ 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> ));