page.tsx 322 B

12345678910111213141516171819
  1. 'use server';
  2. import { notFound } from 'next/navigation';
  3. import View from './view';
  4. export default async function CommentsView({ params }: { params: { id: string } }) {
  5. const postID = params.id;
  6. if (!/^\d+$/.test(postID)) {
  7. return notFound();
  8. }
  9. // 여기서 댓글 목록을 호출
  10. return (
  11. <View />
  12. );
  13. }