mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
11 lines
419 B
TypeScript
11 lines
419 B
TypeScript
import { default as MaterialUIAvatar, AvatarProps } from '@material-ui/core/Avatar';
|
|
import React, { forwardRef } from 'react';
|
|
|
|
// The default element type of MUI's Avatar is 'div' and we don't allow the change of this prop
|
|
type AvatarRef = HTMLDivElement;
|
|
|
|
const Avatar = forwardRef<AvatarRef, AvatarProps>(function Avatar(props, ref) {
|
|
return <MaterialUIAvatar {...props} ref={ref} />;
|
|
});
|
|
|
|
export default Avatar;
|