mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
11 lines
284 B
JavaScript
11 lines
284 B
JavaScript
import React from 'react'
|
|
import styles from './tooltip.module.css'
|
|
|
|
export default function Tooltip({ children, text, opened }) {
|
|
return (
|
|
<div className={styles.tooltip}>
|
|
{text()}
|
|
{opened && <span className={styles.tooltiptext}>{children}</span>}
|
|
</div>
|
|
)
|
|
}
|