mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
25 lines
611 B
TypeScript
25 lines
611 B
TypeScript
// Extensions API -> Status bar customizations
|
|
|
|
import React from "react";
|
|
import { BaseRegistry } from "./base-registry";
|
|
|
|
interface StatusBarComponents {
|
|
Item?: React.ComponentType;
|
|
}
|
|
|
|
interface StatusBarRegistrationV2 {
|
|
components?: StatusBarComponents; // has to be optional for backwards compatability
|
|
}
|
|
|
|
export interface StatusBarRegistration extends StatusBarRegistrationV2 {
|
|
/**
|
|
* @deprecated use components.Item instead
|
|
*/
|
|
item?: React.ReactNode;
|
|
}
|
|
|
|
export class StatusBarRegistry extends BaseRegistry<StatusBarRegistration> {
|
|
}
|
|
|
|
export const statusBarRegistry = new StatusBarRegistry();
|