import { GetServerSideProps } from 'next' import { Dash } from '../components/Dash' import { fetchData } from '../services/fetchData' import type { Data } from '../types/Data' type DashPageProps = { initialData: Data } export default function DashPage({ initialData }: DashPageProps) { return } export const getServerSideProps: GetServerSideProps = async () => { const initialData = await fetchData() return { props: { initialData } } }