import React from "react";
import componentCategories from "../../docs-utils/componentCategories";
import componentGroups from "../../docs-utils/componentGroups";
import ButtonGroupBehaviour from "./ButtonGroup.behaviour";
import buttonGroupPropTypes, {defaultProps} from "./ButtonGroup.propTypes";
import ButtonGroupSkeleton from "./ButtonGroup.skeleton";
import { propsDescription } from "./ButtonGroup.propTypes";
import constantProps from "./ButtonGroup.constantProps";

export default function ButtonGroup(props) {
  return(
    <ButtonGroupBehaviour 
      {...props}
      renderComponent={ButtonGroupSkeleton}
    />
  )
}

ButtonGroup.propTypes = buttonGroupPropTypes;
ButtonGroup.defaultProps = defaultProps;
ButtonGroup.propsDescription=propsDescription;
ButtonGroup.constantProps=constantProps;
if (__DOCS__) {
  ButtonGroup.docs = {
    componentGroup: componentGroups.Molecule,
    folderName :componentCategories.Action
  };
}