glass-app-manager
Version:
Informatica's Glass Framework CLI for bootstrapping
25 lines (22 loc) • 818 B
JavaScript
import * as React from "react";
import Wizard from "./Wizard";
import Shell from "../shell/Shell";
function PageWizard({ page, controls, ...rest }) {
if (!page) {
throw new Error("PageWizard: `page` prop is required");
}
const { buttonGroup = [], ...restPage } = page;
return (
<Wizard {...rest}>
<Shell.Page {...restPage} buttonGroup={[<Wizard.Controls {...controls} />, ...buttonGroup]}>
<div style={{ margin: "10px 20px" }}>
<Wizard.Roadmap />
</div>
<div className="panel" style={{ padding: "20px", margin: "10px 20px", marginTop: 0 }}>
<Wizard.View />
</div>
</Shell.Page>
</Wizard>
);
}
export default PageWizard;