mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Roman <ixrock@gmail.com> Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
16 lines
521 B
TypeScript
16 lines
521 B
TypeScript
import React from "react";
|
|
import { cssNames } from "../renderer/utils";
|
|
import { TabLayout } from "../renderer/components/layout/tab-layout";
|
|
import { PageRegistration } from "./registries/page-registry"
|
|
|
|
export class DynamicPage extends React.Component<{ page: PageRegistration }> {
|
|
render() {
|
|
const { className, components: { Page }, subPages = [] } = this.props.page;
|
|
return (
|
|
<TabLayout className={cssNames("ExtensionPage", className)} tabs={subPages}>
|
|
<Page/>
|
|
</TabLayout>
|
|
)
|
|
}
|
|
}
|