{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pickup-handoff",
  "title": "Pickup Handoff",
  "type": "registry:block",
  "files": [
    {
      "path": "packages/registry-native/blocks/pickup-handoff/PickupHandoff.tsx",
      "content": "import type { ReactElement } from 'react'\nimport { View, type ViewProps } from 'react-native'\nimport { Badge } from '@/components/ui/badge'\nimport { Text } from '@/components/ui/text'\nimport { useAnnouncement } from '@/lib/accessibility'\nimport { cn } from '@/lib/utils'\n\nexport type PickupHandoffStatus = 'preparing' | 'ready' | 'collected'\n\nexport interface PickupHandoffProps extends Omit<ViewProps, 'children'> {\n  className?: string\n  storeName: string\n  address?: string\n  /** A localized pickup window from the order. */\n  window?: string\n  instructions?: string\n  status?: PickupHandoffStatus\n  /** Visible and selectable only while the order is ready. */\n  collectionCode?: string\n  /** Optional scannable pass. It is never mounted before the order is ready or after collection. */\n  verification?: ReactElement\n  action?: ReactElement\n  labels?: Partial<Record<PickupHandoffStatus | 'code' | 'window', string>>\n}\n\nexport function PickupHandoff({\n  className,\n  storeName,\n  address,\n  window,\n  instructions,\n  status = 'preparing',\n  collectionCode,\n  verification,\n  action,\n  labels,\n  ...props\n}: PickupHandoffProps) {\n  const ready = status === 'ready'\n  const collected = status === 'collected'\n  const statusLabel = ready\n    ? (labels?.ready ?? 'Ready for pickup')\n    : collected\n      ? (labels?.collected ?? 'Collected')\n      : (labels?.preparing ?? 'Preparing your order')\n  useAnnouncement(`${storeName}. ${statusLabel}`)\n\n  return (\n    <View {...props} className={cn('gap-[16px] rounded-lg border border-border bg-card p-[16px]', className)}>\n      <View className=\"items-start\">\n        <Badge variant={ready ? 'success' : 'secondary'}>{statusLabel}</Badge>\n      </View>\n      <View className=\"gap-[4px]\">\n        <Text size=\"lg\" accessibilityRole=\"header\" className=\"font-semibold text-card-foreground\">\n          {storeName}\n        </Text>\n        {address ? <Text variant=\"muted\">{address}</Text> : null}\n      </View>\n      {window ? (\n        <View className=\"gap-[4px]\">\n          <Text size=\"sm\" variant=\"muted\">\n            {labels?.window ?? 'Pickup window'}\n          </Text>\n          <Text className=\"font-semibold text-card-foreground\">{window}</Text>\n        </View>\n      ) : null}\n      {instructions ? <Text className=\"text-card-foreground\">{instructions}</Text> : null}\n      {ready && (collectionCode || verification) ? (\n        <View className=\"items-center gap-[8px] border-t border-border pt-[16px]\">\n          {verification}\n          {collectionCode ? (\n            <>\n              <Text size=\"sm\" variant=\"muted\">\n                {labels?.code ?? 'Pickup code'}\n              </Text>\n              <Text\n                selectable\n                size=\"title\"\n                className=\"text-center text-card-foreground\"\n                style={{ fontVariant: ['tabular-nums'] }}\n              >\n                {collectionCode}\n              </Text>\n            </>\n          ) : null}\n        </View>\n      ) : null}\n      {action}\n    </View>\n  )\n}\n",
      "type": "registry:block",
      "target": "~/components/blocks/pickup-handoff/PickupHandoff.tsx"
    },
    {
      "path": "packages/registry-native/blocks/pickup-handoff/index.ts",
      "content": "export { PickupHandoff, type PickupHandoffProps, type PickupHandoffStatus } from './PickupHandoff'\n",
      "type": "registry:block",
      "target": "~/components/blocks/pickup-handoff/index.ts"
    }
  ],
  "dependencies": [],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/accessibility.json",
    "https://native.uipkge.dev/r/native/badge.json",
    "https://native.uipkge.dev/r/native/text.json",
    "https://native.uipkge.dev/r/native/utils.json"
  ],
  "description": "Pickup handoff with location, collection window and a presentation code shown only when ready.",
  "categories": [
    "commerce"
  ]
}