import { createBrowserRouter } from "react-router-dom";
import { AllProjectScreen, AllProjectScreenPath } from "../../features/all_projects/presentation/all_projects_screen";
import {
  PipelineInstanceScreen,
  PipelineInstanceScreenPath,
} from "../../features/pipeline_instance_main_screen/pipeline_instance_screen";
import {
  SelectProjectScreen,
  SelectProjectScreenPath,
} from "../../features/select_project/presentation/select_project";
import {
  CreatePipelineScreen,
  CreatePipelineScreenPath,
} from "../../features/create_pipeline/presentation/create_pipeline_screen";
import { CreateProjectScreen, CreateProjectScreenPath } from "../../features/create_project/create_project_screen";
import {
  CreateTriggerScreenPath,
  TriggerScreen,
} from "../../features/create_trigger/presentation/create_trigger_screen";
import {
  CreateProcessScreen,
  CreateProcessScreenPath,
} from "../../features/create_process/presentation/create_process_screen";
import {
  CreateProjectInstancePath,
  CreateProjectInstanceScreen,
} from "../../features/create_project_instance/create_project_instance";
import { SceneManger, SceneManagerPath } from "../../features/scene_manager/scene_manager";

const idURL = ":id";

export const router = createBrowserRouter([
  {
    path: AllProjectScreenPath,
    element: <AllProjectScreen />,
  },
  {
    path: PipelineInstanceScreenPath + idURL,
    element: <PipelineInstanceScreen />,
  },
  {
    path: SelectProjectScreenPath,
    element: <SelectProjectScreen />,
  },
  {
    path: CreatePipelineScreenPath,
    element: <CreatePipelineScreen />,
  },
  {
    path: CreateProjectScreenPath,
    element: <CreateProjectScreen />,
  },
  {
    path: CreateTriggerScreenPath,
    element: <TriggerScreen />,
  },
  {
    path: CreateProcessScreenPath,
    element: <CreateProcessScreen />,
  },
  {
    path: CreateProjectInstancePath + idURL,
    element: <CreateProjectInstanceScreen />,
  },
  {
    path: SceneManagerPath + idURL,
    element: <SceneManger />,
  },
]);
