import { useState } from 'react' import { Modal } from 'react-bootstrap' import InfoIcon from '../svgs/information-fill.svg' export default function Info ({ children, iconClassName = 'fill-theme-color' }) { const [info, setInfo] = useState() return ( <> setInfo(false)} >
setInfo(false)}>X
{children}
{ e.preventDefault() setInfo(true) }} /> ) }