{"version":3,"sources":["../src/components/Divider/useDivider.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useDividerBase_unstable } from '@fluentui/react-divider';\n\nimport type { DividerProps, DividerState } from './Divider.types';\n\n/**\n * Returns the state for a Divider component, given its props and ref.\n * The returned state can be modified with hooks before being passed to `renderDivider`.\n */\nexport const useDivider = (props: DividerProps, ref: React.Ref<HTMLElement>): DividerState => {\n  const state: DividerState = useDividerBase_unstable(props, ref);\n\n  // Set data attribute for orientation to simplify styling of vertical vs horizontal dividers.\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-orientation'] = props.vertical ? 'vertical' : 'horizontal';\n\n  return state;\n};\n"],"names":["useDivider","props","ref","state","useDividerBase_unstable","root","vertical"],"mappings":"AAAA;;;;;+BAWaA;;;eAAAA;;;8BAR2B;AAQjC,MAAMA,aAAa,CAACC,OAAqBC;IAC9C,MAAMC,QAAsBC,IAAAA,qCAAuB,EAACH,OAAOC;IAE3D,6FAA6F;IAC7F,oDAAoD;IACpDC,MAAME,IAAI,CAAC,mBAAmB,GAAGJ,MAAMK,QAAQ,GAAG,aAAa;IAE/D,OAAOH;AACT"}