{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "avatar", "dependencies": [], "registryDependencies": [ "@seamless/utils" ], "files": [ { "path": "src/components/ui/avatar.tsx", "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Avatar({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<\"div\"> & {\n size?: \"default\" | \"sm\" | \"lg\"\n}) {\n return (\n
\n )\n}\n\ntype ImageState = \"loading\" | \"loaded\" | \"error\"\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<\"img\">) {\n const [state, setState] = React.useState