import React from 'react'; import CircleIcon from 'app/shared/components/circleIcon/circleIcon'; import * as Text from 'app/shared/components/text/text'; import cx from 'classnames'; export interface Props { backgroundImage?: string; title?: string; text?: string; mediaType?: string; fileLink?: string; isVideo?: boolean; onClick?: () => void; hideFooter?: boolean; fullDimensions?: boolean; } const Resource = ({ backgroundImage, title, text, mediaType, fileLink, isVideo, onClick, hideFooter = false, fullDimensions = false, }: Props) => { const containerClassName = cx('c-resource', { 'c-resource--full-dimensions': fullDimensions }); const imageClassName = cx('c-resource__image', { 'c-resource__image--full-dimensions': fullDimensions }); const overlayClassNames = cx('c-resource__image', 'c-resource__image--overlay', { 'c-resource__image--full-dimensions': fullDimensions }); return