import { css, cx } from "emotion"; import * as React from "react"; // @ts-ignore import COLORS from "../../constants/colors"; import { AvatarAtom, CardAtom, IconAtom } from "../../atoms"; const avatarCircle = "border-radius: 100%;"; const CARD_TYPES = { GREY: css` display: inline-flex; background: ${COLORS.GREY.LIGHTER}; border-radius: 8px; box-shadow: none; width: 30rem; padding: 30px; `, }; const TYPES_LIST = { REGULAR_CIRCLE: css` ${avatarCircle} background: ${COLORS.RED.NORMAL}; width: 48px; height: 48px; `, }; interface IProps { className?: any; "data-test"?: any; type?: string; typeCard?: string; src?: string; alt?: string; name: string; date: string; rating: any; description?: string; profileImage: string; level: any; } class ReviewCardMolecule extends React.PureComponent { public state = {}; public render() { const { type = "", typeCard = "", className = "", src, alt, name, date, rating, description, } = this.props; const indents = []; for (let i = 0; i < this.props.level; i++) { indents.push(); } return (

{name}

{date}

= 1 ? COLORS.YELLOW.NORMAL : COLORS.BLACK.LIGHTEST}; `, )} name="star" /> = 2 ? COLORS.YELLOW.NORMAL : COLORS.BLACK.LIGHTEST}; `, )} name="star" /> = 3 ? COLORS.YELLOW.NORMAL : COLORS.BLACK.LIGHTEST}; `, )} name="star" /> = 4 ? COLORS.YELLOW.NORMAL : COLORS.BLACK.LIGHTEST}; `, )} name="star" /> = 5 ? COLORS.YELLOW.NORMAL : COLORS.BLACK.LIGHTEST}; `, )} name="star" />

{description}

); } } export { ReviewCardMolecule };