import React from "react";
import withHelperText from "../../../hoc/withHelperText";

import SectionWidget, { SectionProps } from "./SectionWidget";

class SectionContainer extends React.Component {
  sectionProps: SectionProps;

  constructor(props: SectionProps) {
    super(props);
    const conjunctiveProps = { ...({} as SectionProps), ...props };
    this.sectionProps = conjunctiveProps;
  }
  render() {
    return <SectionWidget {...this.sectionProps} />;
  }
}

export default withHelperText(SectionContainer);
