| author | ymh <ymh.work@gmail.com> |
| Wed, 05 Dec 2018 23:52:25 +0100 | |
| changeset 194 | d19ba6045e82 |
| parent 173 | 0e6703cd0968 |
| permissions | -rw-r--r-- |
| 173 | 1 |
import React from 'react'; |
2 |
import { withNamespaces } from 'react-i18next'; |
|
3 |
||
4 |
export default withNamespaces("")(({icon, isActive, onMouseDown, t}) => ( |
|
5 |
<span className={"button sticky-top" + ((!isActive)?" text-primary":" text-dark")} onMouseDown={onMouseDown} data-active={isActive} title={t("common."+icon)} > |
|
6 |
<span className="material-icons">{icon}</span> |
|
7 |
</span> |
|
8 |
)); |