import React from "react";
import LinkBehaviour from "./Link.behaviour";
import LinkSkeleton from "./Link.skeleton";
import linkPropTypes, {
  defaultProps,
  propsDescription,
} from "./Link.propTypes";
import constantProps from "./Link.constantProps";
import componentCategories from "../../docs-utils/componentCategories";
import componentGroups from "../../docs-utils/componentGroups";

export default function Link(props) {
  return <LinkBehaviour {...props} renderComponent={LinkSkeleton} />;
}

Link.propTypes = linkPropTypes;
Link.defaultProps = defaultProps;
Link.propsDescription = propsDescription;
Link.constantProps = constantProps;

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