import React from "react" import styled from "styled-components" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faInfoCircle, faUserGraduate } from "@fortawesome/free-solid-svg-icons" import withSimpleErrorBoundary from "../util/withSimpleErrorBoundary" const Wrapper = styled.aside` padding 1rem; margin-bottom: 2rem; border-left: 0.2rem solid var(--color); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12); border-radius: 4px; ` const StyledIcon = styled(FontAwesomeIcon)` vertical-align: middle; margin-right: 1rem; margin-left: 0.5rem; color: var(--color); ` const Header = styled.h3` font-size: 1.3rem; font-weight: normal; padding-bottom: 1rem; border-bottom: 1px solid #f7f7f9; ` const Body = styled.div` padding-bottom: 0.5rem; ` const variantToColor = { hint: "#528afc", learningObjectives: "#57b181", } const variantToIcon = { hint: faInfoCircle, learningObjectives: faUserGraduate, } const TextBox = (props) => { return (
{props.name}
{props.children}
) } export default withSimpleErrorBoundary(TextBox)