Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Tooltip = (props) => {
let classes = `${AmplifyUI.tooltip}`;
if (props.autoShowTooltip) {
classes = `${AmplifyUI.tooltip} ${AmplifyUI.autoShowTooltip}`;
}
return (
<div data-text="{props.text}">
{props.children}
</div>
)
}
const Tooltip = props => {
let classes = `${AmplifyUI.tooltip}`;
if (props.autoShowTooltip) {
classes = `${AmplifyUI.tooltip} ${AmplifyUI.autoShowTooltip}`;
}
return (
<div data-text="{props.text}">
{props.children}
</div>
);
};