| author | ymh <ymh.work@gmail.com> |
| Sun, 25 Nov 2018 21:18:55 +0100 | |
| changeset 176 | a24f6bf72f6a |
| parent 173 | 0e6703cd0968 |
| permissions | -rw-r--r-- |
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> ));