diff --git a/web/chat/message-like-tooltip-button.css b/web/chat/message-like-tooltip-button.css new file mode 100644 --- /dev/null +++ b/web/chat/message-like-tooltip-button.css @@ -0,0 +1,9 @@ +div.containerViewerLiked { + padding: 4px; + border-radius: 4px; + background-color: var(--shades-black-80); +} + +div.container:hover { + cursor: pointer; +} diff --git a/web/chat/message-like-tooltip-button.react.js b/web/chat/message-like-tooltip-button.react.js new file mode 100644 --- /dev/null +++ b/web/chat/message-like-tooltip-button.react.js @@ -0,0 +1,22 @@ +// @flow + +import classNames from 'classnames'; +import * as React from 'react'; + +import css from './message-like-tooltip-button.css'; + +type ReactTooltipButtonProps = { + +viewerReacted: boolean, +}; + +function MessageLikeTooltipButton(props: ReactTooltipButtonProps): React.Node { + const { viewerReacted } = props; + + const containerClassNames = classNames(css.container, { + [css.containerViewerLiked]: viewerReacted, + }); + + return