Krishya | 7ec1dd0 | 2025-04-19 15:29:03 +0800 | [diff] [blame^] | 1 | // src/pages/Forum/posts-create/CreatePostPage.jsx |
2 | import React from 'react'; | ||||
3 | import { useUserStore } from '../../store/user'; | ||||
4 | import CreatePost from './CreatePost'; | ||||
5 | |||||
6 | const CreatePostPage = () => { | ||||
7 | const { user } = useUserStore(); // 拿到 user | ||||
8 | return <CreatePost userId={user?.id} />; | ||||
9 | }; | ||||
10 | |||||
11 | export default CreatePostPage; |