UNPKG

livingston-react-library

Version:

Livingston library

13 lines (12 loc) 818 B
import { faLightbulb } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React from 'react'; export var HelpBox = function (_a) { var text = _a.text, link = _a.link; return (React.createElement("div", { className: 'align-content-center justify-content-between alert alert-info', role: 'alert' }, React.createElement("div", { className: 'd-flex' }, React.createElement(FontAwesomeIcon, { className: 'mt-1 mr-3', icon: faLightbulb }), React.createElement("div", null, text, React.createElement("div", { className: 'mt-3' }, link && link.url && link.title && (React.createElement("a", { href: link.url, className: 'alert-link', download: link.pdf }, link.title))))))); };