text: import Header from '../templates/header';
  import Home from '../pages/home';
  import Character from '../pages/character';
  import Error404 from '../pages/error404';
  import getHash from '../utils/getHash';
  import resolveRoutes from '../utils/resolveRoutes';
  import error404 from '../pages/error404';
  
  // Routes
  const routes = {
      '/': Home,
      '/:id': Character,
      '/contact': 'contact'
  }
  
  // Router
  const router = async () => {
      const header = null || document.getElementById('header');
      const content = null || document.getElementById('content');
  
      header.innerHTML = await Header();
  
      let hash = getHash();
      let route = await resolveRoutes(hash);
      let render = routes[route] ? routes[route] : Error404;
      content.innerHTML = await render();
  };
  
  export default router;