MyCrypto/common/components/ui/Tooltip.tsx

15 lines
295 B
TypeScript

import React from 'react';
import './Tooltip.scss';
interface Props {
children: React.ReactElement<string> | string;
}
const Tooltip: React.SFC<Props> = ({ children }) => (
<div className="Tooltip">
<span className="Tooltip-text">{children}</span>
</div>
);
export default Tooltip;