import React from "react"; import { GatsbyImage as Img, type IGatsbyImageData } from "gatsby-plugin-image"; import { Avatar as ChakraAvatar } from "./ChakraAvatar"; export const Avatar = ({ image, alt, title, loading = "lazy", ...props }: { image?: Partial; alt?: string; title?: string; loading?: "eager" | "lazy"; style?: React.CSSProperties; } & React.ComponentProps): JSX.Element => { const { height = "50px", width = "50px", borderRadius = "50%", style, } = props; if (!image) { return ( ); } return ( {alt ); };