init: add code

This commit is contained in:
Xory 2026-01-30 17:06:54 +02:00
parent 475596444a
commit 1e09c02cb9
20 changed files with 2432 additions and 147 deletions

11
app/routes/view.tsx Normal file
View file

@ -0,0 +1,11 @@
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} />
)
}