{"version":3,"sources":["../src/components/Toast/ToastContainer/useToastContainerContextValues.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ToastContainerContextValues, ToastContainerState } from './ToastContainer.types';\n\nexport const useToastContainerContextValues = (state: ToastContainerState): ToastContainerContextValues => {\n  const { close, intent, titleId, bodyId } = state;\n\n  const toast = React.useMemo(\n    () => ({\n      close,\n      intent,\n      titleId,\n      bodyId,\n    }),\n    [close, intent, titleId, bodyId],\n  );\n\n  return { toast };\n};\n"],"names":["useToastContainerContextValues","state","close","intent","titleId","bodyId","toast","React","useMemo"],"mappings":"AAAA;;;;;+BAKaA;;;eAAAA;;;;iEAHU;AAGhB,MAAMA,iCAAiC,CAACC;IAC7C,MAAM,EAAEC,KAAK,EAAEC,MAAM,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGJ;IAE3C,MAAMK,QAAQC,OAAMC,OAAO,CACzB,IAAO,CAAA;YACLN;YACAC;YACAC;YACAC;QACF,CAAA,GACA;QAACH;QAAOC;QAAQC;QAASC;KAAO;IAGlC,OAAO;QAAEC;IAAM;AACjB"}