react-icons/bs#BsBoxArrowInUpRight JavaScript Examples

The following examples show how to use react-icons/bs#BsBoxArrowInUpRight. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CardComponent.js    From hackertab.dev with Apache License 2.0 6 votes vote down vote up
function CardComponent({ icon, title, children, fullBlock, link }) {
	const { openLinksNewTab } = useContext(PreferencesContext);

	const handleHeaderLinkClick = (e) => {
		e.preventDefault();
		let url = `${link}?${APP.ref}`;
		window.open(url, openLinksNewTab ? '_blank' : '_self');
	};

	return (
    <div className={'block' + (fullBlock ? ' fullBlock' : '')}>
      <div className="blockHeader">
        {icon} {title}{' '}
        {link && (
          <a className="blockHeaderLink" href={link} onClick={handleHeaderLinkClick}>
            <BsBoxArrowInUpRight />
          </a>
        )}
      </div>
      <div className="blockContent scrollable">{children}</div>
    </div>
  )
}