mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
26 lines
702 B
TypeScript
26 lines
702 B
TypeScript
import React from "react";
|
|
import { Component, Interface, LensRendererExtension } from "@k8slens/extensions";
|
|
import { Support } from "./src/support";
|
|
import { pageRoute, pageUrl } from "./src/common-vars";
|
|
|
|
export default class SupportPageRendererExtension extends LensRendererExtension {
|
|
globalPages: Interface.PageRegistration[] = [
|
|
{
|
|
routePath: pageRoute,
|
|
components: {
|
|
Page: Support,
|
|
}
|
|
}
|
|
]
|
|
|
|
statusBarItems: Interface.StatusBarRegistration[] = [
|
|
{
|
|
item: (
|
|
<div className="flex align-center gaps hover-highlight" onClick={() => this.navigate(pageUrl)}>
|
|
<Component.Icon material="help" smallest/>
|
|
</div>
|
|
)
|
|
}
|
|
]
|
|
}
|