import html from 'choo/html'; import headerImage from '../../dev/images/header.png'; import { I18n } from '../i18n'; import { homeView } from './home'; import { loginView } from './login'; import { searchView } from './search'; export const viewManager = (state, emit) => { const i18n = new I18n(state); // In viewManager all we are doing is checking the app's state // and passing the state and emit to the relevant view. let htmlContent = html`