{mockPosts[0].author.nickname}
-{mockPosts[0].comment}
+{nickname}
+{content}
{mockPosts[0].likes}
+{currentLikes}
{user_info.nickname}
> )} diff --git a/src/features/community/components/WorryContent.tsx b/src/features/community/components/WorryContent.tsx index 5e2a27d..0bd01f8 100644 --- a/src/features/community/components/WorryContent.tsx +++ b/src/features/community/components/WorryContent.tsx @@ -1,11 +1,27 @@ import styled from 'styled-components'; +import { UserDataType } from '../types'; import { DetailPostContent } from './index'; -const WorryContent = () => { +const WorryContent = ({ + userInfo, + content, + likesCount, + userId, +}: { + userInfo?: UserDataType; + content?: string; + likesCount?: number; + userId?: number; +}) => { return (