import { OpinionCard, OpinionReplyCard } from "./OpinionCard.style"; import { dateConverter } from "../Util/dateConverter"; function OpinionTree({ professor }) { var renderedOpinionIds = []; var postCount; // za da ne go pokazuva ispod postot function displayChildPosts(child, parentPostAuthorUsername, replyIndent) { if (child == null) return; postCount = renderedOpinionIds.push(child.postId); return (
{child.author.username} му реплицирал на{" "} {parentPostAuthorUsername}
{child.content}
{dateConverter(new Date(child.timePosted).toString().slice(4, -43))}
{opinion.author.username} напишал
{opinion.title}
{opinion.content}
{dateConverter( new Date(opinion.timePosted).toString().slice(4, -43) )}