import { OpinionCard, OpinionCardContent, OpinionCardContentTime, OpinionCardContentTitle, OpinionReplyCard, OpinionReplyCardContent, OpinionReplyCardContentTime, StyledFontAwesomeIcon, } from "./OpinionCard.style"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { solid, regular, brands, } from "@fortawesome/fontawesome-svg-core/import.macro"; 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}
{opinion.author.username} напишал
{opinion.content}