import React from "react";
import { FormControl as BaseFormControl } from "baseui/form-control";

export interface FormControlProps {
  children: React.ReactNode;
  label: string;
  caption: string;
}

/**
 * This is the `<FormControl>` component <br />
 * Use this as wrapper for your form/input components
 */
const FormControl: React.FC<FormControlProps> = (props) => {
  const { children } = props;
  return <BaseFormControl {...props}>{children}</BaseFormControl>;
};

export default FormControl;
