mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
29 lines
700 B
TypeScript
29 lines
700 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectionToken } from "@ogre-tools/injectable";
|
|
|
|
interface Shared {
|
|
parentId: string | null;
|
|
orderNumber: number;
|
|
isShown?: boolean;
|
|
}
|
|
|
|
export interface ApplicationMenuItem extends Shared {
|
|
id: string;
|
|
label: string;
|
|
click?: () => void;
|
|
accelerator?: string;
|
|
}
|
|
|
|
export interface Separator extends Shared {
|
|
type: "separator";
|
|
}
|
|
|
|
const applicationMenuItemInjectionToken = getInjectionToken<ApplicationMenuItem | Separator>({
|
|
id: "application-menu-item-injection-token",
|
|
});
|
|
|
|
export default applicationMenuItemInjectionToken;
|