Farmbot-Web-App/frontend/sequences/step_ui/step_content.tsx

22 lines
496 B
TypeScript
Raw Normal View History

2017-12-15 16:09:24 -07:00
import * as React from "react";
import { Row, Col } from "../../ui/index";
2019-12-26 13:20:10 -07:00
import { ErrorBoundary } from "../../error_boundary";
2017-12-15 16:09:24 -07:00
interface StepContentProps {
2018-03-19 08:16:04 -06:00
children?: React.ReactNode;
2017-12-15 16:09:24 -07:00
className: string;
}
export function StepContent(props: StepContentProps) {
const { className } = props;
return <Row>
<Col sm={12}>
<div className={`step-content ${className}`}>
2019-12-26 13:20:10 -07:00
<ErrorBoundary>
{props.children}
</ErrorBoundary>
2017-12-15 16:09:24 -07:00
</div>
</Col>
</Row>;
}