17 lines
864 B
JavaScript
17 lines
864 B
JavaScript
'use client';
|
|
import * as React from 'react';
|
|
import { renderAvatarGroupItem_unstable } from './renderAvatarGroupItem';
|
|
import { useAvatarGroupItem_unstable } from './useAvatarGroupItem';
|
|
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
import { useAvatarGroupItemStyles_unstable } from './useAvatarGroupItemStyles.styles';
|
|
/**
|
|
* The AvatarGroupItem component represents a single person or entity.
|
|
* AvatarGroupItem should only be used in an AvatarGroup component.
|
|
*/ export const AvatarGroupItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
const state = useAvatarGroupItem_unstable(props, ref);
|
|
useAvatarGroupItemStyles_unstable(state);
|
|
useCustomStyleHook_unstable('useAvatarGroupItemStyles_unstable')(state);
|
|
return renderAvatarGroupItem_unstable(state);
|
|
});
|
|
AvatarGroupItem.displayName = 'AvatarGroupItem';
|