mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
This commit is contained in:
1 parent
cfda95c1ba
commit
a49df04adf
28 files changed
+734
-304
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { POSTS } from "../mocks/posts";
|
||||
import styles from "./bbs.module.css";
|
||||
|
||||
export default function PostDetail({ postId }: { postId: number }) {
|
||||
const post = POSTS.find((p) => p.id === postId);
|
||||
if (!post) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={styles.title}>{post.title}</div>
|
||||
<div className={styles.sub}>
|
||||
글쓴이 {post.author} · 조회 {post.views} · {post.date}
|
||||
</div>
|
||||
<hr className={styles.rule} />
|
||||
<div className={styles.body}>{post.body}</div>
|
||||
<hr className={styles.rule} />
|
||||
<div className={styles.footer}>
|
||||
<b>L</b>=목록으로 · <b>M</b>=메인메뉴
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user