mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
13 lines
378 B
TypeScript
13 lines
378 B
TypeScript
import { RouteProps } from "react-router";
|
|
import { configMapsURL } from "../+config-maps";
|
|
import { Config } from "./config";
|
|
import { URLParams } from "../../navigation";
|
|
|
|
export const configRoute: RouteProps = {
|
|
get path() {
|
|
return Config.tabRoutes.map(({ path }) => path).flat();
|
|
}
|
|
};
|
|
|
|
export const configURL = (params?: URLParams): string => configMapsURL(params);
|