import { type ComponentProps, splitProps, Show } from "solid-js" export interface AvatarProps extends ComponentProps<"div"> { fallback: string src?: string background?: string foreground?: string size?: "small" | "normal" | "large" } export function Avatar(props: AvatarProps) { const [split, rest] = splitProps(props, [ "fallback", "src", "background", "foreground", "size", "class", "classList", "style", ]) const src = split.src // did this so i can zero it out to test fallback return (
{(src) => }
) }