import { faArrowAltCircleRight as linkIcon } from '@fortawesome/free-regular-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import type { FC, PropsWithChildren, ReactNode } from 'react'; import { Link } from 'react-router-dom'; import { Card, CardText, CardTitle, UncontrolledTooltip } from 'reactstrap'; import { useElementRef } from '../../utils/helpers/hooks'; import './HighlightCard.scss'; export type HighlightCardProps = PropsWithChildren<{ title: string; link: string; tooltip?: ReactNode; }>; const buildExtraProps = (link: string) => ({ tag: Link, to: link }); export const HighlightCard: FC = ({ children, title, link, tooltip }) => { const ref = useElementRef(); return ( <> {title} {children} {tooltip && {tooltip}} ); };