origin/apps/web/src/components/models/post/SubPost/PathCard.tsx

15 lines
345 B
TypeScript
Raw Normal View History

2025-02-27 13:32:33 +08:00
import { PostDto } from "@nice/common";
import { useNavigate } from "react-router-dom";
import PostCard from "../PostCard";
export default function PathCard({ post }: { post: PostDto }) {
const navigate = useNavigate();
return (
<PostCard
post={post}
onClick={() => {
navigate(`/path/editor/${post?.id}`);
}}></PostCard>
);
}