import React from "react" import * as antd from "antd" import { Icons } from "@components/Icons" import PostCard from "@components/PostCard" import PostsList from "@components/PostsList" import PostService from "@models/post" import "./index.less" const PostPage = (props) => { const post_id = props.params.post_id const [loading, result, error, repeat] = app.cores.api.useRequest(PostService.getPost, { post_id, }) if (error) { return } if (loading) { return } return

Post

{ !!result.hasReplies &&

Replies

}
} export default PostPage