| author | ymh <ymh.work@gmail.com> |
| Sat, 01 Dec 2018 02:38:12 +0100 | |
| changeset 188 | 00cf90eb0f5a |
| 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> ));