import {Fragment, FunctionComponent} from 'react'; import Image from 'next/image'; import {NextSeo} from 'next-seo'; import Header from '../components/header'; import Contacts from '../components/contacts'; interface Props { slogan: string; about: string; } const Index: FunctionComponent = props => { return (

{props.slogan}

Picture of myself
); }; export function getStaticProps() { const data = require('../data/index').default; const about = data.about.links.reduce((value, link) => { return value.replace(new RegExp(link.expression, 'g'), `${link.text}`); }, data.about.text); return { props: { ...data, about } }; } export default Index;