lbry-desktop/ui/component/common/tooltip.jsx
infinite-persistence aaffd3b089
CodeSplit: Load 3rd-party css before ours.
A temporary solution until we code-split css.
2021-06-25 16:00:45 +08:00

18 lines
405 B
JavaScript

// @flow
import type { Node } from 'react';
import React from 'react';
import ReachTooltip from '@reach/tooltip';
// import '@reach/tooltip/styles.css'; --> 'scss/third-party.scss'
type Props = {
label: string | Node,
children: Node,
};
function Tooltip(props: Props) {
const { children, label } = props;
return <ReachTooltip label={label}>{children}</ReachTooltip>;
}
export default Tooltip;