import * as React from 'react'; import Helmet from 'react-helmet'; export interface Props { children: any; css: string[]; scripts: string[]; linkTags: Array>; metaTags: Array>; state: string; i18n: string; loadableStateScript: string; } const HTML: React.SFC = ({ children, scripts, css, state, i18n, linkTags, metaTags, loadableStateScript, }) => { const head = Helmet.renderStatic(); return ( {/* TODO: import from @fortawesome */} {/* */} {/* Custom link & meta tags from webpack */} {linkTags.map((l, idx) => ( ))} {metaTags.map((m, idx) => ( ))} {/* Component link & meta tags */} {head.base.toComponent()} {head.title.toComponent()} {head.meta.toComponent()} {head.link.toComponent()} {head.script.toComponent()} {css.map(href => { return ; })}