1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/cluster-manager/cluster-manager.tsx
2020-07-27 09:14:16 -04:00

39 lines
997 B
TypeScript

import "./cluster-manager.scss"
import React from "react";
import { App } from "../app";
import { ClustersMenu } from "./clusters-menu";
import { BottomBar } from "./bottom-bar";
import { cssNames, IClassName } from "../../utils";
import { Terminal } from "../dock/terminal";
import { i18nStore } from "../../i18n";
import { themeStore } from "../../theme.store";
interface Props {
className?: IClassName;
contentClass?: IClassName;
}
export class ClusterManager extends React.Component<Props> {
static async init() {
await Promise.all([
i18nStore.init(),
themeStore.init(),
Terminal.preloadFonts(),
])
}
render() {
const { className, contentClass } = this.props;
return (
<div className={cssNames("ClusterManager", className)}>
<div id="draggable-top"/>
<div id="lens-view" className={cssNames("flex column", contentClass)}>
<App/>
</div>
<ClustersMenu/>
<BottomBar/>
</div>
)
}
}