15 lines
345 B
TypeScript
15 lines
345 B
TypeScript
![]() |
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>
|
||
|
);
|
||
|
}
|