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';

/**
 * `Label` component is used for showing multiple characteristics or attributes of an object.
 * @since 0.0.42
 */
const Label = ({
  baseClassName = `${CLS_PREFIX}label`,
  className,
  intent,
  children,
  ...props
}) => /*#__PURE__*/React.createElement("span", _extends({
  className: classNames(baseClassName, intent && `${baseClassName}--${intent}`, className)
}, props), children);

export default Label;