import { jsx } from 'react/jsx-runtime';
import React__default from 'react';
import { cn } from '../../../utils/cn.js';
import { useMessageContext } from './MessageContext.js';
import { messageTheme } from './Message.theme.js';

const MessageActions = React__default.forwardRef(({ children, className, ...props }, ref) => {
    const { isStreaming } = useMessageContext();
    // Don't show actions if streaming
    if (isStreaming) {
        return null;
    }
    return (jsx("div", { ref: ref, className: cn(messageTheme.actionsContainerStyle, className), ...props, children: children }));
});
MessageActions.displayName = 'Message.Actions';

export { MessageActions };
