{"version":3,"sources":["../src/components/Dialog/DialogActions/useDialogActions.ts"],"sourcesContent":["import type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { DialogActionsProps, DialogActionsState } from './DialogActions.types';\n\n/**\n * Create the state required to render DialogActions.\n *\n * @param props - props from this instance of DialogActions\n * @param ref - reference to root HTMLDivElement of DialogActions\n */\nexport const useDialogActions = (props: DialogActionsProps, ref: React.Ref<HTMLDivElement>): DialogActionsState => {\n  return {\n    components: { root: 'div' },\n    root: slot.always(getIntrinsicElementProps('div', { ref, ...props }), { elementType: 'div' }),\n  };\n};\n"],"names":["useDialogActions","props","ref","components","root","slot","always","getIntrinsicElementProps","elementType"],"mappings":";;;;+BAUaA;;;eAAAA;;;gCATkC;AASxC,MAAMA,mBAAmB,CAACC,OAA2BC;IAC1D,OAAO;QACLC,YAAY;YAAEC,MAAM;QAAM;QAC1BA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAO;YAAEL;YAAK,GAAGD,KAAK;QAAC,IAAI;YAAEO,aAAa;QAAM;IAC7F;AACF"}