import '../styles/globals.css';
import type { AppProps } from 'next/app';
import Image from 'next/future/image';
import benzinConfig from '../benzinConfig';

function MyApp({ Component, pageProps }: AppProps) {
  return (
    <>
      <a href="/" style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', textDecoration: 'none', marginBottom: '12px' }}>
        <Image src={benzinConfig.CDN + benzinConfig.logoPath} width={128} height={128} alt="logo" />
        <h1>{benzinConfig.title}</h1>
      </a>
      <Component {...pageProps} />
    </>
  )
}

export default MyApp;
