// src/pages/Forum/posts-create/CreatePostPage.jsx
import React from 'react';
import { useUserStore } from '../../store/user';
import CreatePost from './CreatePost';

const CreatePostPage = () => {
  const { user } = useUserStore(); // 拿到 user
  return <CreatePost userId={user?.id} />;
};

export default CreatePostPage;
