import {ReactNode} from 'react'
import Header from './header'
import Footer from './footer'
import Script from 'next/script'

export type HomeLayoutProps = {
  children: ReactNode
}

export default function HomeLayout(props: HomeLayoutProps) {
  return (
    <div className="overflow-auto bg-blue-50 flex flex-col items-stretch relative">
      {/* 页头 */}
      <Header/>

      {/* 正文 */}
      {props.children}

      {/* 页脚 */}
      <Footer/>

      <Script id="qd2852138148beb7882a4a6a3e5ff5b569436003e7dc" src="https://wp.qiye.qq.com/qidian/2852138148/beb7882a4a6a3e5ff5b569436003e7dc" async defer></Script>
    </div>
  )
}
