{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "user-info", "dependencies": [], "registryDependencies": [ "avatar", "@craft/use-initials" ], "files": [ { "path": "registry/new-york-v4/components/user-info.tsx", "content": "import { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\nimport { useInitials } from \"@/hooks/use-initials\";\nimport type { User } from \"@/lib/types\";\n\nexport function UserInfo({ user, showEmail = false }: { user: User; showEmail?: boolean }) {\n const getInitials = useInitials();\n\n return (\n <>\n \n \n \n {getInitials(user.name)}\n \n \n
\n {user.name}\n {showEmail && (\n {user.email}\n )}\n
\n \n );\n}\n", "type": "registry:component" } ], "type": "registry:component" }