Added reactions on news items

This commit is contained in:
mrfry 2021-03-03 18:45:12 +01:00
parent 62b35eac68
commit 64697efc96
10 changed files with 5711 additions and 87 deletions

13
src/components/tooltip.js Normal file
View file

@ -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>
)
}