//@flow import * as React from "react"; import Card from "../Card/Card.react"; import Icon from "../Icon/Icon.react"; type Props = {| +children?: React.Node, +title?: string, +titleUrl?: string, +avatarUrl?: string, +description?: string, +date?: string, +imgUrl?: string, +iconName?: string, +iconHref?: string, +authorName?: string, +avatarImgSrc?: string, +imgSrc?: string, +imgAlt?: string, +aside?: boolean, +postHref?: string, +profileHref?: string, |}; function BlogCard({ children, title, description, avatarUrl, imgUrl, imgAlt, aside, authorName, date, imgSrc = "", avatarImgSrc = "", iconName, iconHref, postHref, profileHref, }: Props): React.Node { return !aside ? ( {imgAlt}

{title}

{description}
{authorName} {date}
) : ( {""}

{title}

{description}
); } /** @component */ export default BlogCard;