import React from 'react'
import { Link } from 'gatsby'
import Container from '../atoms/Container'
import Search from '../Search'
import Menu from '../molecules/Menu'
import ThemeSwitch from '../molecules/ThemeSwitch'
import { ReactComponent as Logo } from '../../images/logo.svg'

import styles from './Header.module.scss'

export default function Header() {
  return (
    <header role="banner" className={styles.header}>
      <Container>
        <div className={styles.headerContent}>
          <h1 className={styles.title}>
            <Link to="/">
              <Logo /> kremalicious
            </Link>
          </h1>

          <nav role="navigation" className={styles.nav}>
            <ThemeSwitch />
            <Search lng="en" />
            <Menu />
          </nav>
        </div>
      </Container>
    </header>
  )
}
