'use server'; import React from 'react'; import { fetchNocturneApi } from '@/app/blog/api'; import { MotionDiv } from '@/app/public/MotionDiv'; import BlogPostCard from '@/app/blog/BlogPostCard'; import { Card, CardBody } from '@nextui-org/card'; const PostList = async ({ page }: { page: number }) => { try { const res = await fetchNocturneApi(`/blog/get_post_list?page=${ page }`); const posts = await res.json(); return ( // blog list
); } catch (e: any) { return ( // todo: use Error.tsx Fatal: { e.toString() } ); } }; export default PostList;