import html from 'choo/html'; import headerImage from '../../dev/images/header.png'; import { homeView } from './home'; import { loginView } from './login'; import { searchView } from './search'; export const viewManager = (state, emit) => { // 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`