import { NextPage } from 'next' import dynamic from 'next/dynamic' import { Server, List } from '@types' import * as Query from '@utils/Query' const Advertisement = dynamic(() => import('@components/Advertisement')) const ResponsiveGrid = dynamic(() => import('@components/ResponsiveGrid')) const Container = dynamic(() => import('@components/Container')) const ServerCard = dynamic(() => import('@components/ServerCard')) const Paginator = dynamic(() => import('@components/Paginator')) const Hero = dynamic(() => import('@components/Hero')) const ServerIndex: NextPage = ({ votes, trusted }) => { return <>

하트 랭킹

하트를 많이 받은 서버들의 순위입니다!

{ votes.data.map(server=> ) }

신뢰된 서버

한국 디스코드 리스트에서 인증받은 신뢰할 수 있는 서버들입니다!!

{ trusted.data.slice(0, 4).map(server=> ) }
} export const getServerSideProps = async() => { const votes = await Query.get.serverList.votes.load(1) const trusted = await Query.get.serverList.trusted.load(1) return { props: { votes,trusted }} } interface ServerIndexProps { votes: List newBots: List trusted: List } export default ServerIndex