'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var clsx = require('clsx');
var classMap = require('./classMap.js');
var jsxRuntime = require('react/jsx-runtime');

const SentimentSurface = /*#__PURE__*/React.forwardRef(function SentimentSurface({
  as,
  sentiment,
  emphasis = 'base',
  className,
  style,
  children,
  id,
  testId,
  ...props
}, ref) {
  const Element = as ?? 'div';
  const classNames = clsx.clsx(classMap.getSentimentSurfaceClassName(sentiment, emphasis), className);
  const sentimentProps = {
    ref,
    id,
    'data-testid': testId,
    className: classNames,
    style,
    ...props
  };
  return (
    /*#__PURE__*/
    // @ts-expect-error - Generic forwardRef limitation. See: https://fettblog.eu/typescript-react-generic-forward-refs/
    jsxRuntime.jsx(Element, {
      ...sentimentProps,
      children: children
    })
  );
});
SentimentSurface.displayName = 'SentimentSurface';

exports.default = SentimentSurface;
//# sourceMappingURL=SentimentSurface.js.map
