| author | ymh <ymh.work@gmail.com> |
| Wed, 28 Nov 2018 18:25:11 +0100 | |
| changeset 181 | cda96c025330 |
| 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> ));