{"version":3,"sources":["../src/components/Drawer/DrawerHeader/useDrawerHeader.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useDrawerHeader_unstable } from '@fluentui/react-drawer';\nimport type { DrawerHeaderProps, DrawerHeaderState } from './DrawerHeader.types';\nimport { stringifyDataAttribute } from '../../../utils';\n\n/**\n * Returns the state for a DrawerHeader component, given its props and ref.\n */\nexport const useDrawerHeader = (props: DrawerHeaderProps, ref: React.Ref<HTMLElement>): DrawerHeaderState => {\n  const state: DrawerHeaderState = useDrawerHeader_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":["useDrawerHeader","props","ref","state","useDrawerHeader_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"}