mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 04:00:09 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
16
package/@stackframe/react/dist/esm/components/elements/user-avatar.js
vendored
Normal file
16
package/@stackframe/react/dist/esm/components/elements/user-avatar.js
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// src/components/elements/user-avatar.tsx
|
||||
import { Avatar, AvatarFallback, AvatarImage } from "@stackframe/stack-ui";
|
||||
import { UserRound } from "lucide-react";
|
||||
import { jsx, jsxs } from "react/jsx-runtime";
|
||||
var defaultSize = 34;
|
||||
function UserAvatar(props) {
|
||||
const user = props.user;
|
||||
return /* @__PURE__ */ jsxs(Avatar, { style: { height: props.size || defaultSize, width: props.size || defaultSize }, className: props.border ? "border" : "", children: [
|
||||
/* @__PURE__ */ jsx(AvatarImage, { src: user?.profileImageUrl || "" }),
|
||||
/* @__PURE__ */ jsx(AvatarFallback, { children: user ? /* @__PURE__ */ jsx("div", { className: "font-medium", style: { fontSize: (props.size || defaultSize) * 0.4 }, children: (user.displayName || user.primaryEmail)?.slice(0, 2).toUpperCase() }) : /* @__PURE__ */ jsx(UserRound, { className: "text-zinc-500", size: (props.size || defaultSize) * 0.6 }) })
|
||||
] });
|
||||
}
|
||||
export {
|
||||
UserAvatar
|
||||
};
|
||||
//# sourceMappingURL=user-avatar.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue