anum-frontend/app/routes/view.tsx
2026-01-30 17:06:54 +02:00

11 lines
259 B
TypeScript

import Post from '../components/post.tsx';
import { useLocation } from "react-router";
export default function ViewPost() {
const location = useLocation();
const statePostId = location.state?.parentId;
return (
<Post postId={statePostId} />
)
}