{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "sidebar-user-panel", "title": "Sidebar User Panel", "description": "User information panel for the sidebar with avatar, name, and online status.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json" ], "files": [ { "path": "registry/new-york/sidebar-user-panel/components/sidebar-user-panel.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface SidebarUserPanelProps extends React.HTMLAttributes {\n avatarUrl?: string\n name?: string\n status?: string\n statusColor?: string\n href?: string\n}\n\nconst SidebarUserPanel = React.forwardRef(\n (\n {\n className,\n avatarUrl,\n name,\n status = \"Online\",\n statusColor = \"#00a65a\",\n href,\n ...props\n },\n ref\n ) => {\n const content = (\n \n {/* Avatar */}\n {avatarUrl && (\n
\n \n
\n )}\n\n {/* Info */}\n
\n {name && (\n \n {name}\n \n )}\n {status && (\n \n \n {status}\n \n )}\n
\n \n )\n\n if (href) {\n return (\n \n {content}\n \n )\n }\n\n return content\n }\n)\nSidebarUserPanel.displayName = \"SidebarUserPanel\"\n\nexport { SidebarUserPanel }\nexport type { SidebarUserPanelProps }\n", "type": "registry:component" } ], "type": "registry:component" }