{"version":3,"sources":["../src/components/AvatarGroup/useAvatarGroupContextValues.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nimport type { AvatarGroupContextValue, AvatarGroupContextValues, AvatarGroupState } from './AvatarGroup.types';\n\n/**\n * Builds the context value shared with the AvatarGroupItems and AvatarGroupPopover\n * rendered inside the AvatarGroup. Only the design-agnostic `layout` is forwarded;\n * the styling `size` is owned by the consumer.\n */\nexport const useAvatarGroupContextValues = (state: AvatarGroupState): AvatarGroupContextValues => {\n  const { layout } = state;\n\n  const avatarGroup = React.useMemo<AvatarGroupContextValue>(() => ({ layout }), [layout]);\n\n  return { avatarGroup };\n};\n"],"names":["useAvatarGroupContextValues","state","layout","avatarGroup","React","useMemo"],"mappings":"AAAA;;;;;+BAWaA;;;eAAAA;;;;iEATU;AAShB,MAAMA,8BAA8B,CAACC;IAC1C,MAAM,EAAEC,MAAM,EAAE,GAAGD;IAEnB,MAAME,cAAcC,OAAMC,OAAO,CAA0B,IAAO,CAAA;YAAEH;QAAO,CAAA,GAAI;QAACA;KAAO;IAEvF,OAAO;QAAEC;IAAY;AACvB"}