mirror of https://github.com/MaxLeiter/Drift
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			415 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			20 lines
		
	
	
		
			415 B
		
	
	
	
		
			TypeScript
		
	
import { getWelcomeContent } from "pages/api/welcome"
 | 
						|
import Home from "./components/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 as string}
 | 
						|
			introContent={content}
 | 
						|
			introTitle={title}
 | 
						|
		/>
 | 
						|
	)
 | 
						|
}
 |