{"version":3,"sources":["../src/components/Toast/useToast.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useToastBase_unstable } from '@fluentui/react-toast';\n\nimport type { ToastProps, ToastState } from './Toast.types';\n\n/**\n * The `useToast` hook processes the props sent to `Toast` and returns state and slot props.\n */\nexport const useToast = (props: ToastProps, ref: React.Ref<HTMLElement>): ToastState => {\n  const state: ToastState = useToastBase_unstable(props, ref);\n\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-intent'] = state.intent;\n\n  return state;\n};\n"],"names":["useToast","props","ref","state","useToastBase_unstable","root","intent"],"mappings":"AAAA;;;;;+BAUaA;;;eAAAA;;;4BAPyB;AAO/B,MAAMA,WAAW,CAACC,OAAmBC;IAC1C,MAAMC,QAAoBC,IAAAA,iCAAqB,EAACH,OAAOC;IAEvD,oDAAoD;IACpDC,MAAME,IAAI,CAAC,cAAc,GAAGF,MAAMG,MAAM;IAExC,OAAOH;AACT"}