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} />
  )
}
