diff --git a/src/components/Comment/CommentChild/index.tsx b/src/components/Comment/CommentChild/index.tsx
new file mode 100644
index 0000000..6e5c478
--- /dev/null
+++ b/src/components/Comment/CommentChild/index.tsx
@@ -0,0 +1,31 @@
+import { ListItem, ListItemText, Typography } from '@mui/material';
+import { Comment } from '../../../types/comment';
+
+type Props = {
+ data: Comment;
+};
+
+const CommentChild = ({ data }: Props) => {
+ return (
+
+
+
+ {data.writer} -
+
+ {data.content}
+ >
+ }
+ />
+
+ );
+};
+
+export default CommentChild;
diff --git a/src/components/Comment/CommentItem/index.tsx b/src/components/Comment/CommentItem/index.tsx
new file mode 100644
index 0000000..27c4012
--- /dev/null
+++ b/src/components/Comment/CommentItem/index.tsx
@@ -0,0 +1,72 @@
+import { ExpandLess, ExpandMore } from '@mui/icons-material';
+import {
+ Avatar,
+ Button,
+ Collapse,
+ List,
+ ListItem,
+ ListItemAvatar,
+ ListItemText,
+ Stack,
+ Typography,
+} from '@mui/material';
+import React from 'react';
+import { UIComment } from '../../../types/comment';
+import CommentChild from '../CommentChild';
+
+type Props = {
+ data: UIComment;
+ expand: (id: number) => void;
+ unexpand: (id: number) => void;
+};
+
+const CommentItem = ({ data, expand, unexpand }: Props) => {
+ const handleExpand = () => expand(data.id);
+ const handleUnExpand = () => unexpand(data.id);
+
+ return (
+ <>
+
+
+
+
+
+
+ {/*
+ Ali Connors
+ */}
+ {data.content}
+ >
+ }
+ />
+ {data.hasChild ? (
+ data.isExpand ? (
+
+ ) : (
+ //
+ //
+
+ )
+ ) : undefined}
+
+
+
+
+ {data.children?.map((child) => (
+
+ ))}
+
+
+ >
+ );
+};
+
+export default React.memo(CommentItem);
diff --git a/src/components/Comment/index.tsx b/src/components/Comment/index.tsx
index e085059..5025d85 100644
--- a/src/components/Comment/index.tsx
+++ b/src/components/Comment/index.tsx
@@ -1,5 +1,10 @@
-import { useRef } from 'react';
+import { debounce, List } from '@mui/material';
+import CommentItem from './CommentItem';
import useCommentReducer, { Operator } from '../../hooks/useCommentReducer';
+import CommentRepo from '../../utils/commentRepo';
+import { useEffect } from 'react';
+import { useWindowEvent } from '../../hooks/useWindowEvent';
+import { isBottomPosIn } from '../../utils/scroll';
type Props = {
articleId: any;
@@ -8,24 +13,46 @@ type Props = {
//#region Fetch Logic
const operator: Operator = {
async fetchTopLevelComment(articleId, page) {
- return [];
+ return CommentRepo.page(articleId, page, 15);
},
async fetchChildrenComment(commentId) {
- return [];
+ return CommentRepo.search(commentId);
},
};
//#endregion
const Comment = ({ articleId }: Props) => {
- const ctRef = useRef(null);
-
const { state, fetchComment, expand, unexpand } = useCommentReducer(
articleId,
operator,
);
- return
;
+ useEffect(() => {
+ fetchComment(1);
+ }, []);
+
+ // useWindowEvent(
+ // ['scroll'],
+ // debounce((_) => {
+ // if (isBottomPosIn(50) && isNext()) {
+ // fetchNext();
+ // }
+ // }, 100),
+ // );
+
+ return (
+
+ {state.comments.map((comment) => (
+
+ ))}
+
+ );
};
export default Comment;
diff --git a/src/hooks/useCommentReducer.tsx b/src/hooks/useCommentReducer.tsx
index 9ff4218..9bee384 100644
--- a/src/hooks/useCommentReducer.tsx
+++ b/src/hooks/useCommentReducer.tsx
@@ -1,14 +1,5 @@
import { Dispatch, useReducer } from 'react';
-import { Comment } from '../types/comment';
-
-/**
- * For 2 depth
- */
-export interface UIComment extends Comment {
- isExpand: boolean;
- alreadyFetch: boolean;
- children: Comment[] | undefined;
-}
+import { Comment, UIComment } from '../types/comment';
export type Action = {
type: keyof typeof ActionType;
@@ -23,12 +14,12 @@ export type State = {
};
export const ActionType = {
- ASSIGN: 'assign',
- LOADING: 'loading',
- ERROR: 'error',
- DONE: 'done',
+ ASSIGN: 'ASSIGN',
+ LOADING: 'LOADING',
+ ERROR: 'ERROR',
+ DONE: 'DONE',
// 미완
- SORT: 'sort',
+ SORT: 'SORT',
};
export const INITIAL_STATE: State = {
@@ -105,8 +96,11 @@ function handleFromDispatch(
async fetchComment(page: number) {
// 로딩 상태
dispatch({ type: 'LOADING' });
- const comming = await operator.fetchTopLevelComment(articleId, page);
- dispatch({ type: 'ASSIGN', payload: [...state.comments, ...comming] });
+ const coming = await operator.fetchTopLevelComment(articleId, page);
+ dispatch({
+ type: 'ASSIGN',
+ payload: [...state.comments, ...coming.map(commentMapping)],
+ });
},
async expand(commentId: number) {
const [selected, index] = getUIComment(state.comments, commentId);
diff --git a/src/main.tsx b/src/main.tsx
index 7196f22..b8b5fd0 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -6,6 +6,7 @@ import TestChildrenPage from './pages/TestChildren';
import TextEditor from './pages/TextEditor';
import InfiniteScroll from './pages/InfiniteScroll';
import { RecoilRoot } from 'recoil';
+import CommentPage from './pages/CommentPage';
const router = createBrowserRouter([
{
@@ -25,6 +26,10 @@ const router = createBrowserRouter([
path: 'infinite',
element: ,
},
+ {
+ path: 'comment',
+ element: ,
+ },
]);
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
diff --git a/src/pages/CommentPage/index.tsx b/src/pages/CommentPage/index.tsx
new file mode 100644
index 0000000..276debe
--- /dev/null
+++ b/src/pages/CommentPage/index.tsx
@@ -0,0 +1,11 @@
+import Comment from '../../components/Comment';
+
+const CommentPage = () => {
+ return (
+
+
+
+ );
+};
+
+export default CommentPage;
diff --git a/src/types/comment.d.ts b/src/types/comment.d.ts
index e48fb51..70d6328 100644
--- a/src/types/comment.d.ts
+++ b/src/types/comment.d.ts
@@ -1,3 +1,15 @@
export interface Comment {
id: number;
+ pictureUrl: string;
+ writer: string;
+ content: string;
+ postAt: string | Date;
+ hasChild: boolean;
+ parentId: number; // -1 = no parent
+}
+
+export interface UIComment extends Comment {
+ isExpand: boolean;
+ alreadyFetch: boolean;
+ children: Comment[] | undefined;
}
diff --git a/src/utils/commentRepo.ts b/src/utils/commentRepo.ts
new file mode 100644
index 0000000..7335e64
--- /dev/null
+++ b/src/utils/commentRepo.ts
@@ -0,0 +1,2270 @@
+import { Comment } from '../types/comment';
+
+const data: Comment[] = [
+ {
+ id: 1,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user0',
+ content: 'content0',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 2,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user1',
+ content: 'content1',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 3,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user2',
+ content: 'content2',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: true,
+ parentId: -1,
+ },
+ {
+ id: 4,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user3',
+ content: 'content3',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: 3,
+ },
+ {
+ id: 5,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user4',
+ content: 'content4',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: 3,
+ },
+ {
+ id: 6,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user5',
+ content: 'content5',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: 3,
+ },
+ {
+ id: 7,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user6',
+ content: 'content6',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: 3,
+ },
+ {
+ id: 8,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user7',
+ content: 'content7',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 9,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user8',
+ content: 'content8',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 10,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user9',
+ content: 'content9',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 11,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user10',
+ content: 'content10',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 12,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user11',
+ content: 'content11',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: true,
+ parentId: -1,
+ },
+ {
+ id: 13,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user12',
+ content: 'content12',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: 12,
+ },
+ {
+ id: 14,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user13',
+ content: 'content13',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 15,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user14',
+ content: 'content14',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 16,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user15',
+ content: 'content15',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: 12,
+ },
+ {
+ id: 17,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user16',
+ content: 'content16',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: 12,
+ },
+ {
+ id: 18,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user17',
+ content: 'content17',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 19,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user18',
+ content: 'content18',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 20,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user19',
+ content: 'content19',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 21,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user20',
+ content: 'content20',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 22,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user21',
+ content: 'content21',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 23,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user22',
+ content: 'content22',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 24,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user23',
+ content: 'content23',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 25,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user24',
+ content: 'content24',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 26,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user25',
+ content: 'content25',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 27,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user26',
+ content: 'content26',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 28,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user27',
+ content: 'content27',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 29,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user28',
+ content: 'content28',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 30,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user29',
+ content: 'content29',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 31,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user30',
+ content: 'content30',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 32,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user31',
+ content: 'content31',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 33,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user32',
+ content: 'content32',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 34,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user33',
+ content: 'content33',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 35,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user34',
+ content: 'content34',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 36,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user35',
+ content: 'content35',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 37,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user36',
+ content: 'content36',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 38,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user37',
+ content: 'content37',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 39,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user38',
+ content: 'content38',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 40,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user39',
+ content: 'content39',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 41,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user40',
+ content: 'content40',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 42,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user41',
+ content: 'content41',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 43,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user42',
+ content: 'content42',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 44,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user43',
+ content: 'content43',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 45,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user44',
+ content: 'content44',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 46,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user45',
+ content: 'content45',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 47,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user46',
+ content: 'content46',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 48,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user47',
+ content: 'content47',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 49,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user48',
+ content: 'content48',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 50,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user49',
+ content: 'content49',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 51,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user50',
+ content: 'content50',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 52,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user51',
+ content: 'content51',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 53,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user52',
+ content: 'content52',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 54,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user53',
+ content: 'content53',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 55,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user54',
+ content: 'content54',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 56,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user55',
+ content: 'content55',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 57,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user56',
+ content: 'content56',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 58,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user57',
+ content: 'content57',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 59,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user58',
+ content: 'content58',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 60,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user59',
+ content: 'content59',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 61,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user60',
+ content: 'content60',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 62,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user61',
+ content: 'content61',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 63,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user62',
+ content: 'content62',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 64,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user63',
+ content: 'content63',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 65,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user64',
+ content: 'content64',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 66,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user65',
+ content: 'content65',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 67,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user66',
+ content: 'content66',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 68,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user67',
+ content: 'content67',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 69,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user68',
+ content: 'content68',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 70,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user69',
+ content: 'content69',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 71,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user70',
+ content: 'content70',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 72,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user71',
+ content: 'content71',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 73,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user72',
+ content: 'content72',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 74,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user73',
+ content: 'content73',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 75,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user74',
+ content: 'content74',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 76,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user75',
+ content: 'content75',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 77,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user76',
+ content: 'content76',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 78,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user77',
+ content: 'content77',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 79,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user78',
+ content: 'content78',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 80,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user79',
+ content: 'content79',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 81,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user80',
+ content: 'content80',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 82,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user81',
+ content: 'content81',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 83,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user82',
+ content: 'content82',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 84,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user83',
+ content: 'content83',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 85,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user84',
+ content: 'content84',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 86,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user85',
+ content: 'content85',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 87,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user86',
+ content: 'content86',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 88,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user87',
+ content: 'content87',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 89,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user88',
+ content: 'content88',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 90,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user89',
+ content: 'content89',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 91,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user90',
+ content: 'content90',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 92,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user91',
+ content: 'content91',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 93,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user92',
+ content: 'content92',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 94,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user93',
+ content: 'content93',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 95,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user94',
+ content: 'content94',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 96,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user95',
+ content: 'content95',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 97,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user96',
+ content: 'content96',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 98,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user97',
+ content: 'content97',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 99,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user98',
+ content: 'content98',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 100,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user99',
+ content: 'content99',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 101,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user100',
+ content: 'content100',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 102,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user101',
+ content: 'content101',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 103,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user102',
+ content: 'content102',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 104,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user103',
+ content: 'content103',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 105,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user104',
+ content: 'content104',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 106,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user105',
+ content: 'content105',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 107,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user106',
+ content: 'content106',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 108,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user107',
+ content: 'content107',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 109,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user108',
+ content: 'content108',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 110,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user109',
+ content: 'content109',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 111,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user110',
+ content: 'content110',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 112,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user111',
+ content: 'content111',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 113,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user112',
+ content: 'content112',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 114,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user113',
+ content: 'content113',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 115,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user114',
+ content: 'content114',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 116,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user115',
+ content: 'content115',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 117,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user116',
+ content: 'content116',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 118,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user117',
+ content: 'content117',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 119,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user118',
+ content: 'content118',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 120,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user119',
+ content: 'content119',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 121,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user120',
+ content: 'content120',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 122,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user121',
+ content: 'content121',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 123,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user122',
+ content: 'content122',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 124,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user123',
+ content: 'content123',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 125,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user124',
+ content: 'content124',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 126,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user125',
+ content: 'content125',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 127,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user126',
+ content: 'content126',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 128,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user127',
+ content: 'content127',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 129,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user128',
+ content: 'content128',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 130,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user129',
+ content: 'content129',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 131,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user130',
+ content: 'content130',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 132,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user131',
+ content: 'content131',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 133,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user132',
+ content: 'content132',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 134,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user133',
+ content: 'content133',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 135,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user134',
+ content: 'content134',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 136,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user135',
+ content: 'content135',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 137,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user136',
+ content: 'content136',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 138,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user137',
+ content: 'content137',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 139,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user138',
+ content: 'content138',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 140,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user139',
+ content: 'content139',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 141,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user140',
+ content: 'content140',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 142,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user141',
+ content: 'content141',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 143,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user142',
+ content: 'content142',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 144,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user143',
+ content: 'content143',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 145,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user144',
+ content: 'content144',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 146,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user145',
+ content: 'content145',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 147,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user146',
+ content: 'content146',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 148,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user147',
+ content: 'content147',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 149,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user148',
+ content: 'content148',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 150,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user149',
+ content: 'content149',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 151,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user150',
+ content: 'content150',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 152,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user151',
+ content: 'content151',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 153,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user152',
+ content: 'content152',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 154,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user153',
+ content: 'content153',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 155,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user154',
+ content: 'content154',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 156,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user155',
+ content: 'content155',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 157,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user156',
+ content: 'content156',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 158,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user157',
+ content: 'content157',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 159,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user158',
+ content: 'content158',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 160,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user159',
+ content: 'content159',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 161,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user160',
+ content: 'content160',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 162,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user161',
+ content: 'content161',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 163,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user162',
+ content: 'content162',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 164,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user163',
+ content: 'content163',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 165,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user164',
+ content: 'content164',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 166,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user165',
+ content: 'content165',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 167,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user166',
+ content: 'content166',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 168,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user167',
+ content: 'content167',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 169,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user168',
+ content: 'content168',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 170,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user169',
+ content: 'content169',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 171,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user170',
+ content: 'content170',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 172,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user171',
+ content: 'content171',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 173,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user172',
+ content: 'content172',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 174,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user173',
+ content: 'content173',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 175,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user174',
+ content: 'content174',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 176,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user175',
+ content: 'content175',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 177,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user176',
+ content: 'content176',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 178,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user177',
+ content: 'content177',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 179,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user178',
+ content: 'content178',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 180,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user179',
+ content: 'content179',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 181,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user180',
+ content: 'content180',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 182,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user181',
+ content: 'content181',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 183,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user182',
+ content: 'content182',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 184,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user183',
+ content: 'content183',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 185,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user184',
+ content: 'content184',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 186,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user185',
+ content: 'content185',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 187,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user186',
+ content: 'content186',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 188,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user187',
+ content: 'content187',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 189,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user188',
+ content: 'content188',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 190,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user189',
+ content: 'content189',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 191,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user190',
+ content: 'content190',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 192,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user191',
+ content: 'content191',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 193,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user192',
+ content: 'content192',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 194,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user193',
+ content: 'content193',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 195,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user194',
+ content: 'content194',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 196,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user195',
+ content: 'content195',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 197,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user196',
+ content: 'content196',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 198,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user197',
+ content: 'content197',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 199,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user198',
+ content: 'content198',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 200,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user199',
+ content: 'content199',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 201,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user200',
+ content: 'content200',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 202,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user201',
+ content: 'content201',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 203,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user202',
+ content: 'content202',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 204,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user203',
+ content: 'content203',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 205,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user204',
+ content: 'content204',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 206,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user205',
+ content: 'content205',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 207,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user206',
+ content: 'content206',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 208,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user207',
+ content: 'content207',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 209,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user208',
+ content: 'content208',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 210,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user209',
+ content: 'content209',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 211,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user210',
+ content: 'content210',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 212,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user211',
+ content: 'content211',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 213,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user212',
+ content: 'content212',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 214,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user213',
+ content: 'content213',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 215,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user214',
+ content: 'content214',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 216,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user215',
+ content: 'content215',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 217,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user216',
+ content: 'content216',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 218,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user217',
+ content: 'content217',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 219,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user218',
+ content: 'content218',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 220,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user219',
+ content: 'content219',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 221,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user220',
+ content: 'content220',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 222,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user221',
+ content: 'content221',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 223,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user222',
+ content: 'content222',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 224,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user223',
+ content: 'content223',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 225,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user224',
+ content: 'content224',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 226,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user225',
+ content: 'content225',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 227,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user226',
+ content: 'content226',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 228,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user227',
+ content: 'content227',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 229,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user228',
+ content: 'content228',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 230,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user229',
+ content: 'content229',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 231,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user230',
+ content: 'content230',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 232,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user231',
+ content: 'content231',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 233,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user232',
+ content: 'content232',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 234,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user233',
+ content: 'content233',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 235,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user234',
+ content: 'content234',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 236,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user235',
+ content: 'content235',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 237,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user236',
+ content: 'content236',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 238,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user237',
+ content: 'content237',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 239,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user238',
+ content: 'content238',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 240,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user239',
+ content: 'content239',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 241,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user240',
+ content: 'content240',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 242,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user241',
+ content: 'content241',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 243,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user242',
+ content: 'content242',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 244,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user243',
+ content: 'content243',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 245,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user244',
+ content: 'content244',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 246,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user245',
+ content: 'content245',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 247,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user246',
+ content: 'content246',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 248,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user247',
+ content: 'content247',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 249,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user248',
+ content: 'content248',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+ {
+ id: 250,
+ pictureUrl: 'https://mui.com/static/images/avatar/1.jpg',
+ writer: 'user249',
+ content: 'content249',
+ postAt: '2022-11-08T15:20:17.797Z',
+ hasChild: false,
+ parentId: -1,
+ },
+];
+
+const CommentRepo = {
+ topLevelComments: data.filter((v) => v.parentId === -1),
+
+ page(articleId: number, page: number, per: number) {
+ const low = Math.min(this.topLevelComments.length, (page - 1) * per);
+ const high = Math.min(this.topLevelComments.length, page * per);
+
+ return this.topLevelComments.slice(low, high);
+ },
+ search(parentId: number) {
+ return data.filter((v) => parentId === v.parentId);
+ },
+};
+
+export default CommentRepo;