CoastalCommitsPastes/client/app/page.tsx

20 lines
415 B
TypeScript
Raw Normal View History

2022-11-09 21:38:05 -05:00
import { getWelcomeContent } from "pages/api/welcome"
2022-11-12 03:58:21 -05:00
import Home from "./components/home"
2022-11-09 21:38:05 -05:00
const getWelcomeData = async () => {
const welcomeContent = await getWelcomeContent()
return welcomeContent
}
export default async function Page() {
2022-11-10 02:11:36 -05:00
const { content, rendered, title } = await getWelcomeData()
2022-11-12 03:58:21 -05:00
return (
2022-11-12 21:39:03 -05:00
<Home
rendered={rendered as string}
introContent={content}
introTitle={title}
/>
)
2022-11-09 01:14:43 -05:00
}