| changeset 173 | 0e6703cd0968 |
| 172:4b780ebbedc6 | 173:0e6703cd0968 |
|---|---|
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 )); |