var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Content, ContentVariants, Card, CardHeader, CardTitle, CardBody } from '@patternfly/react-core';
export const ChatbotWelcomePrompt = (_a) => {
    var { title, description, prompts, className, testId, isCompact = false } = _a, props = __rest(_a, ["title", "description", "prompts", "className", "testId", "isCompact"]);
    return (_jsxs("div", Object.assign({ "data-testid": testId, className: `pf-chatbot--layout--welcome ${isCompact ? 'pf-m-compact' : ''} ${className !== null && className !== void 0 ? className : ''}` }, props, { children: [_jsxs(Content, { component: ContentVariants.h1, children: [_jsx("span", { className: "pf-chatbot__hello", children: title }), _jsx("br", {}), _jsx("span", { className: "pf-chatbot__question", children: description })] }), prompts && (_jsx("div", { className: "pf-chatbot__prompt-suggestions", children: prompts === null || prompts === void 0 ? void 0 : prompts.map((prompt, index) => (_jsxs(Card, { className: "pf-chatbot__prompt-suggestion", isClickable: true, isCompact: isCompact, children: [_jsx(CardHeader, { selectableActions: {
                                onClickAction: prompt.onClick,
                                selectableActionId: `welcome-prompt-input-${index}`,
                                selectableActionAriaLabelledby: `welcome-prompt-title-${index}`
                            }, children: _jsx(CardTitle, { id: `welcome-prompt-title-${index}`, children: prompt.title }) }), prompt.message && _jsx(CardBody, { children: prompt.message })] }, `welcome-prompt-${index}`))) }))] })));
};
export default ChatbotWelcomePrompt;
