{"version":3,"sources":["../src/components/Nav/NavSectionHeader/useNavSectionHeader.ts"],"sourcesContent":["import type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { NavSectionHeaderProps, NavSectionHeaderState } from './NavSectionHeader.types';\n\n/**\n * Create the state required to render NavSectionHeader.\n *\n * @param props - props from this instance of NavSectionHeader\n * @param ref - reference to root HTMLDivElement of NavSectionHeader\n */\nexport const useNavSectionHeader = (\n  props: NavSectionHeaderProps,\n  ref: React.Ref<HTMLDivElement>,\n): NavSectionHeaderState => {\n  return {\n    components: {\n      root: 'h3',\n    },\n    root: slot.always(\n      getIntrinsicElementProps('h3', {\n        ref,\n        ...props,\n      }),\n      { elementType: 'h3' },\n    ),\n  };\n};\n"],"names":["useNavSectionHeader","props","ref","components","root","slot","always","getIntrinsicElementProps","elementType"],"mappings":";;;;+BAUaA;;;eAAAA;;;gCATkC;AASxC,MAAMA,sBAAsB,CACjCC,OACAC;IAEA,OAAO;QACLC,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,oBAAI,CAACC,MAAM,CACfC,IAAAA,wCAAwB,EAAC,MAAM;YAC7BL;YACA,GAAGD,KAAK;QACV,IACA;YAAEO,aAAa;QAAK;IAExB;AACF"}