{"version":3,"sources":["../src/components/AvatarGroup/AvatarGroupPopover/useAvatarGroupPopoverContextValues.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { AvatarGroupContextValue, AvatarGroupContextValues } from '@fluentui/react-avatar';\n\nimport type { AvatarGroupPopoverState } from './AvatarGroupPopover.types';\n\n/**\n * Builds the context value provided to the overflowed AvatarGroupItems rendered\n * inside the popover surface. `isOverflow` switches the items to their overflow\n * (list) presentation.\n */\nexport const useAvatarGroupPopoverContextValues = (state: AvatarGroupPopoverState): AvatarGroupContextValues => {\n  const avatarGroup = React.useMemo<AvatarGroupContextValue>(() => ({ isOverflow: true }), []);\n\n  return { avatarGroup };\n};\n"],"names":["useAvatarGroupPopoverContextValues","state","avatarGroup","React","useMemo","isOverflow"],"mappings":"AAAA;;;;;+BAYaA;;;eAAAA;;;;iEAVU;AAUhB,MAAMA,qCAAqC,CAACC;IACjD,MAAMC,cAAcC,OAAMC,OAAO,CAA0B,IAAO,CAAA;YAAEC,YAAY;QAAK,CAAA,GAAI,EAAE;IAE3F,OAAO;QAAEH;IAAY;AACvB"}