mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 00:59:37 +07:00
18 lines
338 B
TypeScript
18 lines
338 B
TypeScript
import { useData } from "~/renderer/hooks";
|
|
import { Data } from "./+data";
|
|
import Link from "~/renderer/link";
|
|
|
|
const ViewPostPage = () => {
|
|
const { post } = useData<Data>();
|
|
|
|
return (
|
|
<div>
|
|
<Link href="/">Go Back</Link>
|
|
<h1>{post.title}</h1>
|
|
<p>{post.body}</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ViewPostPage;
|