import styled from "styled-components" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faBook, faCalendar, faFile, faHourglass, } from "@fortawesome/free-solid-svg-icons" import { PageData } from "../../../types/types" const StyledMetaContainer = styled.div` color: ${({ theme }) => theme.theme.color.text.gray}; ` const Meta = (props: { fetchedPage: PageData }) => { return ( {/* posts count */} {props.fetchedPage.length > 0 && ( <>    {props.fetchedPage.length} post {props.fetchedPage.length > 1 && "s"}      )} {/* date */}    {props.fetchedPage.date || "Unknown date"}      {/* read time */}    {props.fetchedPage.readTime ? props.fetchedPage.readTime + " read" : "unknown length"}      {/* word count */}    {props.fetchedPage.wordCount ? props.fetchedPage.wordCount + " word" + (props.fetchedPage.wordCount > 1 && "s") : "unknown words"} ) } export default Meta