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 r}from"./TipseenConstants.js";import m 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 u from"../../../components/button/dist/Button/Button.js";var p=function(p){var T=p.id,f=p.title,E=p.titleClassName,N=p.children,C=void 0===N?null:N,I=p.hideDismiss,v=void 0===I||I,S=p.hideSubmit,b=p.submitButtonText,j=void 0===b?n:b,B=p.submitButtonIcon,k=p.onSubmit,D=p.dismissButtonText,_=void 0===D?r:D,h=p.onDismiss,x=e(d),y=s((function(){return x===o.INVERTED?"on-inverted-background":"on-primary-color"}),[x]);return t.createElement(m,{title:f,titleClassName:E,id:T},C?t.createElement("span",null,C):null,t.createElement("div",{className:i(l.buttons)},v?null:t.createElement(u,{kind:"tertiary",color:y,className:l.dismiss,size:"small",onClick:h,"data-testid":a(c.TIPSEEN_CONTENT_DISMISS)},_),S?null:t.createElement(u,{kind:"primary",color:y,size:"small",onClick:k,"data-testid":a(c.TIPSEEN_CONTENT_SUBMIT),leftIcon:B},j)))};export{p as default};
//# sourceMappingURL=TipseenContent.js.map
