{"version":3,"sources":["../src/components/Drawer/DrawerFooter/useDrawerFooter.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useDrawerFooter_unstable } from '@fluentui/react-drawer';\nimport type { DrawerFooterProps, DrawerFooterState } from './DrawerFooter.types';\nimport { stringifyDataAttribute } from '../../../utils';\n\n/**\n * Returns the state for a DrawerFooter component, given its props and ref.\n */\nexport const useDrawerFooter = (props: DrawerFooterProps, ref: React.Ref<HTMLElement>): DrawerFooterState => {\n  const state: DrawerFooterState = useDrawerFooter_unstable(props, ref);\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-scroll-state'] = stringifyDataAttribute(state.scrollState);\n\n  return state;\n};\n"],"names":["useDrawerFooter","props","ref","state","useDrawerFooter_unstable","root","stringifyDataAttribute","scrollState"],"mappings":"AAAA;;;;;+BAUaA;;;eAAAA;;;6BAP4B;uBAEF;AAKhC,MAAMA,kBAAkB,CAACC,OAA0BC;IACxD,MAAMC,QAA2BC,IAAAA,qCAAwB,EAACH,OAAOC;IACjE,oDAAoD;IACpDC,MAAME,IAAI,CAAC,oBAAoB,GAAGC,IAAAA,6BAAsB,EAACH,MAAMI,WAAW;IAE1E,OAAOJ;AACT"}