| 1 |
import { InformationCircleIcon } from '@heroicons/react/24/outline'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
|
| 4 |
const InfoIcon = ({ url }) => { |
| 5 |
return ( |
| 6 |
<span className="disco-flex disco-group disco-mt-0.5 disco-gap-1 hover:disco-text-primary"> |
| 7 |
<InformationCircleIcon className="disco-size-5" /> |
| 8 |
<a |
| 9 |
href={url} |
| 10 |
target="_blank" |
| 11 |
rel="noreferrer" |
| 12 |
className="disco-text-primary disco-text-sm disco-underline group-hover:disco-text-primary disco-hidden group-hover:disco-block" |
| 13 |
> |
| 14 |
{__('Learn More', 'disco')} |
| 15 |
</a> |
| 16 |
</span> |
| 17 |
); |
| 18 |
}; |
| 19 |
|
| 20 |
export default InfoIcon; |
| 21 |
|