import { NextPage } from 'next' import dynamic from 'next/dynamic' import { get } from '@utils/Query' import { BotList } from '@types' const Hero = dynamic(() => import('@components/Hero')) const Advertisement = dynamic(() => import('@components/Advertisement')) const BotCard = dynamic(() => import('@components/BotCard')) const Container = dynamic(() => import('@components/Container')) const ResponsiveGrid = dynamic(() => import('@components/ResponsiveGrid')) const New:NextPage = ({ data }) => { return <> { data.data.map(bot => ) } } export const getServerSideProps = async () => { const data = await get.list.new.load(1) return { props: { data } } } interface NewProps { data: BotList } export default New