UNPKG

@brizy/ui

Version:
13 lines (12 loc) 557 B
import AntAvatar from "antd/lib/avatar"; import React from "react"; export var AvatarSize; (function (AvatarSize) { AvatarSize["large"] = "large"; AvatarSize["small"] = "small"; AvatarSize["default"] = "default"; })(AvatarSize || (AvatarSize = {})); export const Avatar = ({ size = AvatarSize.default, gap, src, icon, style, children, isSquare = false, }) => { const shape = isSquare ? "square" : "circle"; return (React.createElement(AntAvatar, { shape: shape, size: size, gap: gap, src: src, icon: icon, style: style }, children)); };