"use client"; import type { CSSProperties } from "react"; type RunningAvatarLoaderProps = { size?: number; trackWidth?: number; label?: string; className?: string; labelClassName?: string; inline?: boolean; }; const S = 4; const box = ( w: number, h: number, color: string, extra?: CSSProperties, ): CSSProperties => ({ position: "absolute", width: w * S, height: h * S, background: color, borderRadius: 1, ...extra, }); export function RunningAvatarLoader({ label, className = "", labelClassName = "", inline = false, }: RunningAvatarLoaderProps) { const charW = 14 * S; const charH = 22 * S; const totalH = charH + 8; return (
{/* Shadow. */}
{/* Character root — bounces. */}
{/* Left leg. */}
{/* Shorts. */}
{/* Skin. */}
{/* Shoe. */}
{/* Right leg. */}
{/* Torso (yellow shirt). */}
{/* Left arm. */}
{/* Right arm. */}
{/* Neck. */}
{/* Head. */}
{/* Eyes. */}
{/* Mouth. */}
{/* Hair. */}
{/* Hat brim. */}
{/* Hat top. */}
{label ? (

{label}

) : null}
); }