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

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

export { Prompt };
//# sourceMappingURL=ListItemPrompt.mjs.map
