"use client"; /* * Documentation: * Avatar — https://app.subframe.com/f023064a5ca0/library?component=Avatar_bec25ae6-5010-4485-b46b-cf79e3943ab2 */ import React from "react"; import * as SubframeUtils from "../../utils"; export interface AvatarRootProps extends Omit, "color"> { color?: "neutral" | "blue" | "green" | "red" | "yellow" | "purple"; size?: | "extra-small" | "small" | "medium" | "large" | "extra-large" | "2-x-large" | "3-x-large"; border?: boolean; children?: React.ReactNode; image?: string; className?: string; } const AvatarRoot = React.forwardRef( function AvatarRoot( { color = "neutral", size = "medium", border = false, children, image, className, ...otherProps }: AvatarRootProps, ref ) { return (
{children ? ( {children} ) : null} {image ? ( ) : null}
); } ); export const Avatar = AvatarRoot;