import { IonAvatar, IonButton, IonCol, IonIcon, IonImg, IonItem, IonLabel, IonRow, IonText, } from '@ionic/react'; import { arrowRedoOutline, chatboxOutline, ellipsisHorizontal, globe, heart, thumbsUp, thumbsUpOutline, } from 'ionicons/icons'; import '../pages/Tab2.css'; import React from 'react'; const Post = (props): React.JSX.Element => { const { post } = props; return (

{post.name}

{post.sponsored ? 'Sponsored' : post.time}   

{post.message}

{post.image && } {post.sponsored && (

ionicframework.com

Start building apps today!

Learn more
)}
{post.sponsored &&

{post.views} Views

}
Like Comment Share
); }; export default Post;