{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "profile-header",
  "title": "Profile Header",
  "type": "registry:block",
  "files": [
    {
      "path": "packages/registry-native/blocks/profile-header/ProfileHeader.tsx",
      "content": "import * as React from 'react'\nimport { View, type ImageSourcePropType, type ViewProps } from 'react-native'\nimport { cn } from '@/lib/utils'\nimport { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'\nimport { Text } from '@/components/ui/text'\n\nexport interface ProfileHeaderProps extends ViewProps {\n  className?: string\n  name: string\n  subtitle?: string\n  imageSource?: ImageSourcePropType\n  /** Trailing slot, usually an Edit button. */\n  action?: React.ReactNode\n}\n\n/** Two-letter monogram from the first and last words of a display name. */\nexport function initialsFor(name: string): string {\n  const parts = name.trim().split(/\\s+/).filter(Boolean)\n  if (parts.length === 0) return '?'\n  if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase()\n  return `${parts[0][0]}${parts[parts.length - 1][0]}`.toUpperCase()\n}\n\n/** Identity row for profile and account screens: avatar, name, subtitle. */\nfunction ProfileHeader({ className, name, subtitle, imageSource, action, ...props }: ProfileHeaderProps) {\n  return (\n    <View className={cn('flex-row items-center gap-3', className)} {...props}>\n      <Avatar size=\"lg\">\n        <AvatarFallback size=\"lg\">{initialsFor(name)}</AvatarFallback>\n        {imageSource ? <AvatarImage source={imageSource} /> : null}\n      </Avatar>\n      <View className=\"min-w-0 flex-1 gap-0.5\">\n        <Text size=\"lg\" className=\"font-semibold\" accessibilityRole=\"header\" numberOfLines={1}>\n          {name}\n        </Text>\n        {subtitle ? (\n          <Text variant=\"muted\" size=\"sm\" numberOfLines={1}>\n            {subtitle}\n          </Text>\n        ) : null}\n      </View>\n      {action}\n    </View>\n  )\n}\n\nexport { ProfileHeader }\n",
      "type": "registry:block",
      "target": "~/components/blocks/profile-header/ProfileHeader.tsx"
    },
    {
      "path": "packages/registry-native/blocks/profile-header/index.ts",
      "content": "export { ProfileHeader, initialsFor, type ProfileHeaderProps } from './ProfileHeader'\n",
      "type": "registry:block",
      "target": "~/components/blocks/profile-header/index.ts"
    }
  ],
  "dependencies": [],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/avatar.json",
    "https://native.uipkge.dev/r/native/text.json"
  ],
  "description": "Identity row for profile screens: large Avatar with initials fallback, name as header, muted subtitle, and a trailing action slot.",
  "categories": [
    "account"
  ]
}