import Layout from '@components/Layouts/Layout'; import { NextPageWithLayout } from '@ts/types/app'; import { loadTranslation } from '@utils/helpers/i18n'; import { GetStaticProps } from 'next'; import Head from 'next/head'; import Image from 'next/image'; import type { ReactElement } from 'react'; import styles from '../styles/Home.module.css'; const Home: NextPageWithLayout = () => { return (
Create Next App

Welcome to Next.js!

Get started by editing{' '} pages/index.tsx

Documentation →

Find in-depth information about Next.js features and API.

Learn →

Learn about Next.js in an interactive course with quizzes!

Examples →

Discover and deploy boilerplate example Next.js projects.

Deploy →

Instantly deploy your Next.js site to a public URL with Vercel.

); }; Home.getLayout = function getLayout(page: ReactElement) { return {page}; }; export const getStaticProps: GetStaticProps = async (ctx) => { const translation = await loadTranslation( ctx.locale!, process.env.NODE_ENV === 'production' ); return { props: { translation, }, }; }; export default Home;