/*
 * Copyright 2019-2022 VMware, Inc. All rights reserved. VMware Confidential
 */

import { NgModule } from "@angular/core";
import { Route, RouterModule } from "@angular/router";
import { PluginContainerComponent } from "./plugin-container.component";

export const PLUGINS_ROUTE = "plugins";
// Resources path is defined here because it's related to the plugins,
// the path itself is used in multiple modules.
export const RESOURCES_ROUTE = "resources";

const declarations = [PluginContainerComponent];

export const pluginContainerRoutes: Route[] = [
    {
        path: PLUGINS_ROUTE,
        component: PluginContainerComponent,
        children: [],
    },
];

@NgModule({
    imports: [RouterModule.forChild(pluginContainerRoutes)],
    declarations: declarations,
    exports: declarations,
})
export class PluginContainerModule {}
