// A round picture of someone, over a fallback like their initials. The fallback shows while the // image loads, or if it doesn't. import type { Child, Html } from '../lib/jsx/jsx-runtime.ts' import css from './avatar.css' with { type: 'text' } export const AVATAR_CSS = css type Props = Record & { children?: Child } export function Avatar(props: Props): Html { let { children, ...attributes } = props return ( {children} ) } // Give it an `alt`, or `alt=""` with the fallback saying who it is. export function AvatarImage(props: Record): Html { return } export function AvatarFallback(props: Props): Html { let { children, ...attributes } = props return ( {children} ) }