@legion-ui-kit/react-core
Version:
To install the package into your project:
3 lines (2 loc) • 824 B
JavaScript
import{jsxs as s,jsx as e}from"react/jsx-runtime";import t from"classnames";import l from"./styles.module.scss.js";const c=c=>{const{className:i,description:n,descriptionClassName:a,descriptionStyle:o,leftIcon:r,leftIconClassName:m,leftIconStyle:d,rightIcon:p,rightIconClassName:h,rightIconStyle:y,title:N,titleClassName:f,titleStyle:_,...g}=c,I=t(l.legion_snackbar_card,i,{[l.left_icon_only]:!!r&&!p,[l.right_icon_only]:!r&&!!p,[l.both_icons]:!!r&&!!p}),u=t(l.left_icon,m),C=t(l.title,f),S=t(l.description,a),b=t(l.right_icon,h);return s("div",{className:I,...g,children:[r&&e("span",{className:u,style:d,children:r}),N&&e("span",{className:C,style:_,children:N}),n&&e("span",{className:S,style:o,children:n}),p&&e("span",{className:b,style:y,children:p})]})};export{c as default};
//# sourceMappingURL=SnackbarCard.js.map