import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { useLabel } from '@websolutespa/bom-mixer-hooks';
import { Cta, Text, useLlm } from '@websolutespa/bom-mixer-llm';
import style from './form-request.module.scss';
export const FormRequest = ({ last })=>{
    const label = useLabel();
    const { formRequest } = useLlm((state)=>state.actions);
    return /*#__PURE__*/ _jsx("div", {
        className: "llm__row",
        children: /*#__PURE__*/ _jsxs("div", {
            className: "llm__col --md-8 --lg-6",
            children: [
                /*#__PURE__*/ _jsx(Text, {
                    body: label('llm.formRequestTitle')
                }),
                last && /*#__PURE__*/ _jsxs("div", {
                    className: style.formRequestCtas,
                    children: [
                        /*#__PURE__*/ _jsx(Cta, {
                            type: "simple",
                            label: label('llm.formRequestYes'),
                            onClick: ()=>formRequest(true)
                        }),
                        /*#__PURE__*/ _jsx(Cta, {
                            type: "simple",
                            label: label('llm.formRequestNo'),
                            onClick: ()=>formRequest(false)
                        })
                    ]
                })
            ]
        })
    });
};

//# sourceMappingURL=FormRequest.js.map