import React from "react";
import { createBrowserRouter } from "react-router-dom";
import StartPage from "./start-page/start-page";
import UnknownPage from "./unknown-page";
import { KanbanBoardsPage } from "./kanban-board/kanban-boards-page";
import { IssuesListBoardPage } from "./issues-list-board/issues-list-boards-page";

export const router = createBrowserRouter([
	{
		path: "/",
		element: (<StartPage/>),
  },
	{
		path: "/kanban-board/:type/:name",
		element: (<KanbanBoardsPage/>)
	},
	{
		path: "/issues-list-board/:type/:name",
		element: (<IssuesListBoardPage/>)
	},
	{
		path: "*",
		element: (<UnknownPage/>)
	}
]);