{"version":3,"file":"index17.mjs","sources":["../src/components/notification/NotificationStatusIcon/index.tsx"],"sourcesContent":["import { FunctionComponent, CSSProperties } from \"react\";\nimport styles from \"./NotificationStatusIcon.module.css\";\nimport {\n  LabelPairedCircleInfoSmBoldIcon,\n  LabelPairedCircleCheckSmBoldIcon,\n  LabelPairedCircleExclamationSmBoldIcon,\n  LabelPairedTriangleExclamationSmBoldIcon,\n} from \"@deriv/quill-icons\";\n\nimport { BadgeNotification } from \"@components\";\n\nexport type NotificationStatusIconProps = {\n  className?: string;\n  showBadge?: boolean;\n  style?: CSSProperties;\n\n  /** Variant props */\n  type?: \"informative\" | \"success\" | \"warning\" | \"danger\";\n};\n\nexport const NotificationStatusIcon: FunctionComponent<\n  NotificationStatusIconProps\n> = ({ className = \"\", type = \"informative\", showBadge = true, style }) => {\n  const statusId = `notification-status-icon-${type}`;\n\n  const iconType = {\n    informative: <LabelPairedCircleInfoSmBoldIcon />,\n    success: <LabelPairedCircleCheckSmBoldIcon />,\n    warning: <LabelPairedTriangleExclamationSmBoldIcon />,\n    danger: <LabelPairedCircleExclamationSmBoldIcon />,\n  };\n\n  return (\n    <div\n      className={[styles.root, className].join(\" \")}\n      data-id={statusId}\n      data-type={type}\n      style={style}\n    >\n      <div className={`${styles.containerIcon} notification-icon`}>\n        {iconType[type]}\n      </div>\n      {showBadge && (\n        <div className={styles.badgeContainer}>\n          <BadgeNotification size=\"sm\" showLabel={false} />\n        </div>\n      )}\n    </div>\n  );\n};\n\nexport default NotificationStatusIcon;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBa,MAAA,yBAET,CAAC,EAAE,YAAY,IAAI,OAAO,eAAe,YAAY,MAAM,YAAY;AACnE,QAAA,WAAW,4BAA4B,IAAI;AAEjD,QAAM,WAAW;AAAA,IACf,iCAAc,iCAAgC,EAAA;AAAA,IAC9C,6BAAU,kCAAiC,EAAA;AAAA,IAC3C,6BAAU,0CAAyC,EAAA;AAAA,IACnD,4BAAS,wCAAuC,CAAA,CAAA;AAAA,EAClD;AAGE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,CAAC,OAAO,MAAM,SAAS,EAAE,KAAK,GAAG;AAAA,MAC5C,WAAS;AAAA,MACT,aAAW;AAAA,MACX;AAAA,MAEA,UAAA;AAAA,QAAC,oBAAA,OAAA,EAAI,WAAW,GAAG,OAAO,aAAa,sBACpC,UAAA,SAAS,IAAI,EAChB,CAAA;AAAA,QACC,aACC,oBAAC,OAAI,EAAA,WAAW,OAAO,gBACrB,UAAC,oBAAA,mBAAA,EAAkB,MAAK,MAAK,WAAW,MAAA,CAAO,EACjD,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}