import React, { ReactElement } from "react"; import PropTypes from "prop-types"; import { isEmpty, isNil } from "lodash"; interface ICardProps { orientation: string; imageUrl: string; hasDetails: boolean; title?: PropTypes.ReactElementLike | null; children?: PropTypes.ReactNodeLike; } const renderCard = (props): ReactElement => { switch (props.orientation) { case "horizontal": return <>horiztonal>; case "vertical": return (