mirror of
https://gitlab.com/MrFry/qmining-page
synced 2026-04-29 11:47:37 +02:00
Added reactions on news items
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import React from 'react'
|
||||
import styles from './tooltip.module.css'
|
||||
|
||||
export default function Tooltip({ children, text, opened }) {
|
||||
return (
|
||||
<div>
|
||||
<div className={styles.tooltip}>
|
||||
{text()}
|
||||
{opened && <span className={styles.tooltiptext}>{children}</span>}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user