{"version":3,"sources":["../src/components/Menu/MenuItemLink/useMenuItemLink.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useMenuItemLinkBase_unstable } from '@fluentui/react-menu';\nimport { stringifyDataAttribute } from '../../../utils';\nimport type { MenuItemLinkProps, MenuItemLinkState } from './MenuItemLink.types';\n\nexport const useMenuItemLink = (props: MenuItemLinkProps, ref: React.Ref<HTMLAnchorElement>): MenuItemLinkState => {\n  const state: MenuItemLinkState = useMenuItemLinkBase_unstable(props, ref);\n\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-disabled'] = stringifyDataAttribute(props.disabled);\n\n  return state;\n};\n"],"names":["useMenuItemLink","props","ref","state","useMenuItemLinkBase_unstable","root","stringifyDataAttribute","disabled"],"mappings":"AAAA;;;;;+BAOaA;;;eAAAA;;;2BAJgC;uBACN;AAGhC,MAAMA,kBAAkB,CAACC,OAA0BC;IACxD,MAAMC,QAA2BC,IAAAA,uCAA4B,EAACH,OAAOC;IAErE,oDAAoD;IACpDC,MAAME,IAAI,CAAC,gBAAgB,GAAGC,IAAAA,6BAAsB,EAACL,MAAMM,QAAQ;IAEnE,OAAOJ;AACT"}