更新论坛功能
Change-Id: I0efd26d35cc4abb0c6d51ff1bff2cfd738f986dd
diff --git a/src/pages/Forum/posts-main/components/CreatePostButton.jsx b/src/pages/Forum/posts-main/components/CreatePostButton.jsx
new file mode 100644
index 0000000..0632173
--- /dev/null
+++ b/src/pages/Forum/posts-main/components/CreatePostButton.jsx
@@ -0,0 +1,22 @@
+import React from 'react';
+import { useLocation } from 'wouter';
+import { Edit } from '@icon-park/react';
+import './CreatePostButton.css';
+
+const CreatePostButton = () => {
+ const [, navigate] = useLocation();
+
+ const goToCreatePost = () => {
+ navigate('/forum/create-post');
+ };
+
+ return (
+ <div className="create-post">
+ <button onClick={goToCreatePost} className="create-btn">
+ <Edit theme="outline" size="18" /> 发帖
+ </button>
+ </div>
+ );
+};
+
+export default CreatePostButton;