{"version":3,"sources":["../../../../../src/components/notification-item/parts/Content.tsx"],"sourcesContent":["import { notificationItemStyles } from '@novu/js/ui-core';\nimport React, { type ReactNode } from 'react';\nimport { useStyle } from '../../../hooks/internal/useEngineStores';\nimport { useNotificationItem } from '../context';\n\nexport type NotificationItemContentProps = { className?: string; children?: ReactNode };\n\n/** The column next to the avatar that holds the text, the actions and the date. */\nexport const Content = ({ className, children }: NotificationItemContentProps) => {\n  const { notification } = useNotificationItem('Content');\n  const style = useStyle();\n\n  return (\n    <div\n      className={style({\n        key: notificationItemStyles.content.key,\n        className: [notificationItemStyles.content.className, className].filter(Boolean).join(' '),\n        context: { notification },\n      })}\n    >\n      {children}\n    </div>\n  );\n};\n\nexport type NotificationItemTextProps = { className?: string; children?: ReactNode };\n\n/** Groups the subject and the body. */\nexport const Text = ({ className, children }: NotificationItemTextProps) => {\n  const { notification } = useNotificationItem('Text');\n  const style = useStyle();\n\n  return (\n    <div\n      className={style({\n        key: notificationItemStyles.textContainer.key,\n        className: [notificationItemStyles.textContainer.className, className].filter(Boolean).join(' '),\n        context: { notification },\n      })}\n    >\n      {children}\n    </div>\n  );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAuC;AAEvC,6BAAyB;AACzB,qBAAoC;AAUhC;AALG,IAAM,UAAU,CAAC,EAAE,WAAW,SAAS,MAAoC;AAChF,QAAM,EAAE,aAAa,QAAI,oCAAoB,SAAS;AACtD,QAAM,YAAQ,iCAAS;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,MAAM;AAAA,QACf,KAAK,sCAAuB,QAAQ;AAAA,QACpC,WAAW,CAAC,sCAAuB,QAAQ,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,QACzF,SAAS,EAAE,aAAa;AAAA,MAC1B,CAAC;AAAA,MAEA;AAAA;AAAA,EACH;AAEJ;AAKO,IAAM,OAAO,CAAC,EAAE,WAAW,SAAS,MAAiC;AAC1E,QAAM,EAAE,aAAa,QAAI,oCAAoB,MAAM;AACnD,QAAM,YAAQ,iCAAS;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,MAAM;AAAA,QACf,KAAK,sCAAuB,cAAc;AAAA,QAC1C,WAAW,CAAC,sCAAuB,cAAc,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,QAC/F,SAAS,EAAE,aAAa;AAAA,MAC1B,CAAC;AAAA,MAEA;AAAA;AAAA,EACH;AAEJ;","names":[]}