feat(app): add post page

This commit is contained in:
plebeius.eth
2024-04-02 17:00:36 +02:00
parent 087d4ab738
commit dcd29a46bb
5 changed files with 126 additions and 102 deletions
+1
View File
@@ -0,0 +1 @@
export { default } from './post-page';
+19
View File
@@ -0,0 +1,19 @@
import { useComment } from '@plebbit/plebbit-react-hooks';
import { useParams } from 'react-router-dom';
import Post from '../../components/post/post';
import styles from './post-page.module.css';
const PostPage = () => {
const params = useParams();
const { commentCid } = params;
const post = useComment({ commentCid });
return (
<div className={styles.content}>
<Post post={post} showAllReplies={true} />
</div>
);
};
export default PostPage;