/* 
  VueRouter inutile fino allo sviluppo dell'handler dei messaggi
  e solo nel caso si voglia supportare l'uso di url nella versione web
*/

import { createRouter, createWebHashHistory } from "vue-router";

2; // 1. Define route components.
const ChatList = { template: "./components/ChatList.vue" };
// const ChatView = { template: "./components/ChatView.vue" };
// const MessageComposition = { template: "./components/MessageComposition.vue" };

// 2. Define some routes
const routes = [
  { path: "/", component: ChatList },
  //   { path: "/chat_view", component: ChatView },
  //   { path: "/chat_view/write", component: MessageComposition },
];

// 3. Create the router instance and pass the `routes` option
export const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
