'use strict';

var React = require('react');
require('../../common/theme.js');
require('../../common/direction.js');
require('@transferwise/neptune-tokens');
require('../../common/propsValues/control.js');
require('../../common/propsValues/size.js');
require('../../common/propsValues/typography.js');
require('../../common/propsValues/width.js');
require('../../common/propsValues/type.js');
require('../../common/propsValues/dateMode.js');
require('../../common/propsValues/monthFormat.js');
require('../../common/propsValues/position.js');
require('../../common/propsValues/layouts.js');
require('../../common/propsValues/status.js');
var sentiment = require('../../common/propsValues/sentiment.js');
require('../../common/propsValues/profileType.js');
require('../../common/propsValues/variant.js');
require('../../common/propsValues/scroll.js');
require('../../common/propsValues/markdownNodeType.js');
require('../../common/fileType.js');
require('@transferwise/formatting');
require('@transferwise/icons');
require('clsx');
require('react-intl');
require('../../common/closeButton/CloseButton.messages.js');
var jsxRuntime = require('react/jsx-runtime');
var ListItemContext = require('../ListItemContext.js');
var InlinePrompt = require('../../prompt/InlinePrompt/InlinePrompt.js');
require('../../body/Body.js');
require('../../button/Button.resolver.js');
require('../../prompt/PrimitivePrompt/PrimitivePrompt.js');
require('../../badge/Badge.js');
require('@wise/art');
require('../../statusIcon/StatusIcon.js');
require('@transferwise/neptune-validation');
require('../../provider/direction/DirectionProvider.js');
require('../../primitives/PrimitiveButton/PrimitiveButton.js');
require('../../primitives/PrimitiveAnchor/PrimitiveAnchor.js');
require('../../link/Link.messages.js');
require('../../prompt/common/Expander/Expander.messages.js');

const Prompt = ({
  sentiment: sentiment$1 = sentiment.Sentiment.NEUTRAL,
  mediaLabel,
  children,
  media,
  loading
}) => {
  const {
    ids,
    props
  } = React.useContext(ListItemContext.ListItemContext);
  const isLongLivedMuted = props.disabled && Boolean(props.disabledPromptMessage);
  return /*#__PURE__*/jsxRuntime.jsx(InlinePrompt.InlinePrompt, {
    id: ids.prompt,
    sentiment: sentiment$1,
    media: media,
    loading: loading,
    mediaLabel: mediaLabel,
    muted: isLongLivedMuted,
    className: "wds-list-item-prompt",
    children: isLongLivedMuted ? props.disabledPromptMessage : children
  });
};
Prompt.displayName = 'ListItem.Prompt';

exports.Prompt = Prompt;
//# sourceMappingURL=ListItemPrompt.js.map
