import { Box, Button, Text } from '@chakra-ui/react'; import React from 'react'; import { useAuth } from '../../context/auth'; import { calcTotalDiscussion, calculateReaction, } from '../../helper/calculateTotal'; import PostItem from '../post/PostItem'; import { BsFillPinAngleFill } from 'react-icons/bs'; const ProfileRightPart = ({ pinnedPosts, otherPosts }) => { const user = useAuth(); const userId = user?.userId; return ( {pinnedPosts && pinnedPosts.length !== 0 && ( {pinnedPosts.map((postData) => ( ))} )} {otherPosts && otherPosts.map((postData) => ( ))} ); }; export default ProfileRightPart;