14 lines
600 B
JavaScript
14 lines
600 B
JavaScript
'use client';
|
|
import * as React from 'react';
|
|
import { renderAvatar_unstable } from './renderAvatar';
|
|
import { useAvatar_unstable } from './useAvatar';
|
|
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
import { useAvatarStyles_unstable } from './useAvatarStyles.styles';
|
|
export const Avatar = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
const state = useAvatar_unstable(props, ref);
|
|
useAvatarStyles_unstable(state);
|
|
useCustomStyleHook_unstable('useAvatarStyles_unstable')(state);
|
|
return renderAvatar_unstable(state);
|
|
});
|
|
Avatar.displayName = 'Avatar';
|