import _extends from "@babel/runtime/helpers/extends";
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
import React from 'react';
import classNames from 'classnames';
import { CLS_PREFIX } from '../../constants';

/**
 * `Paragraph` is a block containing a single paragraph of [Text](#!/Text).
 * @since 1.1.0
 */
const Paragraph = ({
  baseClassName = `${CLS_PREFIX}paragraph`,
  className,
  children,
  component: Tag = 'p',
  ...props
}) => /*#__PURE__*/React.createElement(Tag, _extends({
  className: classNames(baseClassName, className)
}, props), children);

export default Paragraph;