text: import React from 'react';
  import GridContainer from 'components/Grid/GridContainer';
  import GridItem from 'components/Grid/GridItem';
  import Button from 'components/CustomButtons/Button';
  import Disclaimer from 'components/Information/Disclaimer';
  
  const DefaultSubmit = props => {
    const { xs, sm, md, lg, submitColor, submitText, extraButtons, noDisclaimer } = props;
    return (
      <React.Fragment>
        <GridItem xs={xs || 12} sm={sm || 12} md={md || lg || 4} lg={lg || md || 4}>
          <Button type="submit" color={submitColor || 'rose'}>
            {submitText || 'Submit'}
          </Button>
          {extraButtons ? <props.extraButtons /> : ''}
        </GridItem>
        <GridItem xs={12 - (xs || 0)} sm={12 - (sm || 0)} md={12 - (md || lg || 4)} lg={12 - (lg || md || 4)}>
          {noDisclaimer ? '' : <Disclaimer />}
        </GridItem>
      </React.Fragment>
    );
  };
  
  const ToolForm = props => {
    const { handleSubmit, customSubmit, ...submitProps } = props;
    return (
      <form onSubmit={handleSubmit}>
        <GridContainer>
          {props.children}
          {customSubmit ? <props.customSubmit /> : <DefaultSubmit {...submitProps} />}
        </GridContainer>
      </form>
    );
  };
  
  export default ToolForm;
  