0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/packages/plugins/ui-theme/src/components/Avatar.tsx
2021-04-15 21:10:49 +02:00

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;