CoastalCommitsPastes/client/app/(home)/page.tsx
2022-11-09 23:11:36 -08:00

13 lines
376 B
TypeScript

import { getWelcomeContent } from "pages/api/welcome"
import Home from "./home"
const getWelcomeData = async () => {
const welcomeContent = await getWelcomeContent()
return welcomeContent
}
export default async function Page() {
const { content, rendered, title } = await getWelcomeData()
return <Home rendered={rendered} introContent={content} introTitle={title} />
}