19 lines
394 B
TypeScript
19 lines
394 B
TypeScript
|
import MainTemplate from "@/templates/MainTemplate"
|
||
|
import PostListing from "@/containers/PostListing"
|
||
|
import { usePosts } from "@/hooks/usePosts"
|
||
|
|
||
|
const HomePage = () => {
|
||
|
const { posts } = usePosts()
|
||
|
return (
|
||
|
<MainTemplate>
|
||
|
<PostListing
|
||
|
title="Recent posts"
|
||
|
posts={posts.slice(0, 5)}
|
||
|
showAllButton
|
||
|
/>
|
||
|
</MainTemplate>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export { HomePage }
|