aaffd3b089
A temporary solution until we code-split css.
18 lines
405 B
JavaScript
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;
|