import React from "react";
import AccordionBehaviour from "./Accordion.behaviour";
import AccordionSkeleton from "./Accordion.skeleton";
import componentGroups from "../../docs-utils/componentGroups";
import componentCategories from "../../docs-utils/componentCategories";

import AccordionPropTypes, {
  defaultProps,
  propsDescription
} from "./Accordion.propTypes";
import constantProps from "./Accordion.constantProps";

export default function Accordion(props) {
  return <AccordionBehaviour {...props} renderComponent={AccordionSkeleton} />;
}

Accordion.propTypes = AccordionPropTypes;
Accordion.defaultProps = defaultProps;
Accordion.propsDescription = propsDescription;
Accordion.constantProps = constantProps;

if (__DOCS__) {
  Accordion.docs = {
    componentGroup: componentGroups.Atom,
    folderName: componentCategories.General
  };
}
