import t,{useContext as e,useMemo as s}from"react";import i from"classnames";import{TipseenColor as o,SUBMIT_BUTTON_TEXT as n,DISMISS_BUTTON_TEXT as m}from"./TipseenConstants.js";import r from"./TipseenBasicContent.js";import l from"./TipseenContent.module.scss.js";import{getTestId as a}from"../../tests/testIds.js";import{ComponentDefaultTestId as c}from"../../tests/constants.js";import{TipseenContext as d}from"./Tipseen.js";import{Button as u}from"@vibe/button/mockedClassNames";var p=function(p){var T=p.id,f=p.title,E=p.titleClassName,N=p.children,C=void 0===N?null:N,v=p.hideDismiss,I=void 0===v||v,b=p.hideSubmit,S=p.submitButtonText,j=void 0===S?n:S,k=p.submitButtonIcon,B=p.onSubmit,D=p.dismissButtonText,_=void 0===D?m:D,h=p.onDismiss,x=e(d),y=s((function(){return x===o.INVERTED?"on-inverted-background":"on-primary-color"}),[x]);return t.createElement(r,{title:f,titleClassName:E,id:T},C?t.createElement("span",null,C):null,t.createElement("div",{className:i(l.buttons)},I?null:t.createElement(u,{kind:"tertiary",color:y,className:l.dismiss,size:"small",onClick:h,"data-testid":a(c.TIPSEEN_CONTENT_DISMISS)},_),b?null:t.createElement(u,{kind:"primary",color:y,size:"small",onClick:B,"data-testid":a(c.TIPSEEN_CONTENT_SUBMIT),leftIcon:k},j)))};export{p as default};
//# sourceMappingURL=TipseenContent.js.map
