import Link from "../link/Link"; import { ImageMask } from "./assets/ImageMask"; import { StyledCard, StyledCardBody, StyledCardFooter, StyledCardHeader, } from "./Card.styled"; import { BodyProps, CardProps, FooterProps, HeaderProps } from "./types"; import LikeIcon from "./assets/like.svg"; import CommentIcon from "./assets/comment.svg"; import TimeIcon from "./assets/time.svg"; import React from "react"; import { Heading, Text } from "../../components/typography/Typography"; export const Card = (props: React.PropsWithChildren) => { const { children } = props; return {children}; }; export const Header: React.FC> = props => { const { img } = props; return (
); }; export const Body: React.FC> = props => { const { title, message } = props; return ( {title} {message} ); }; export const Footer: React.FC> = props => { const { link, likesCount, commentCount, linkTitle, time } = props; return ( {link && ( {linkTitle} )}
{likesCount && (
{likesCount}
)} {commentCount && (
{commentCount}
)} {time && (
{time}
)}
); }; Card.Header = Header; Card.Body = Body; Card.Footer = Footer;