import { title as titleFilter } from '../filters.ts';

export default ({
  title,
  theme,
  extraStylesheets,
  extraScripts,
  cacheBust,
}) => <head>
  <meta charSet="utf-8" />
  <title>mezza.biz</title>

  <meta name="theme-color" content="{{ theme.color }}" id="theme-color" />
  <meta name="description" content="Invest today" />

  <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0" />

  <link rel="stylesheet" type="text/css" href={`/styles.css${cacheBust}`} media="all" />

  <>
    {(extraStylesheets || [])
      .map(extraStylesheet => <link
        rel="stylesheet"
        type="text/css"
        href={`${extraStylesheet}${cacheBust}`}
        media="all"
        key={extraStylesheet}
      />)}
  </>
  <>
    {(extraScripts || [])
      .map(extraScript => <script
        defer
        type="module"
        src={`${extraScript}${cacheBust}`}
        key={extraScript}
      ></script>)}
  </>
</head>;
