import "./wizard-layout.scss"; import React from "react"; import { observer } from "mobx-react"; import { cssNames, IClassName } from "../../utils"; export interface WizardLayoutProps extends React.DOMAttributes { className?: IClassName; header?: React.ReactNode; headerClass?: IClassName; contentClass?: IClassName; infoPanelClass?: IClassName; infoPanel?: React.ReactNode; centered?: boolean; // Centering content horizontally } @observer export class WizardLayout extends React.Component { render() { const { className, contentClass, infoPanelClass, infoPanel, header, headerClass, centered, children, ...props } = this.props; return (
{header && (
{header}
)}
{children}
{infoPanel && (
{infoPanel}
)}
); } }