UNPKG

@payfit/unity-components

Version:

26 lines (25 loc) 758 B
import { useAvatarContext as e } from "../Avatar.context.js"; import { avatarBase as t } from "../Avatar.variants.js"; import * as n from "react"; import { uyTv as r } from "@payfit/unity-themes"; import { jsx as i } from "react/jsx-runtime"; import * as a from "@radix-ui/react-avatar"; //#region src/components/avatar/parts/AvatarImage.tsx var o = r({ extend: t, base: "uy:aspect-square uy:w-full uy:h-full uy:object-cover uy:bg-surface-neutral-lowest" }), s = n.forwardRef(({ className: t, ...n }, r) => { let { variant: s, size: c } = e(), l = o({ variant: s, size: c, className: t }); return /* @__PURE__ */ i(a.Image, { ref: r, className: l, ...n }); }); s.displayName = a.Image.displayName; //#endregion export { s as AvatarImage };