mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
37 lines
999 B
TypeScript
37 lines
999 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import { Icon } from "../icon";
|
|
import React from "react";
|
|
import type {
|
|
SidebarItemRegistration } from "../layout/sidebar-items.injectable";
|
|
import {
|
|
sidebarItemsInjectionToken,
|
|
} from "../layout/sidebar-items.injectable";
|
|
import { computed } from "mobx";
|
|
import { noop } from "lodash/fp";
|
|
|
|
export const configSidebarItemId = "config";
|
|
|
|
const configSidebarItemsInjectable = getInjectable({
|
|
id: "config-sidebar-items",
|
|
|
|
instantiate: () =>
|
|
computed((): SidebarItemRegistration[] => [
|
|
{
|
|
id: configSidebarItemId,
|
|
parentId: null,
|
|
title: "Config",
|
|
getIcon: () => <Icon material="list" />,
|
|
onClick: noop,
|
|
orderNumber: 40,
|
|
},
|
|
]),
|
|
|
|
injectionToken: sidebarItemsInjectionToken,
|
|
});
|
|
|
|
export default configSidebarItemsInjectable;
|