{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "order-confirmation",
  "title": "Order Confirmation",
  "type": "registry:block",
  "files": [
    {
      "path": "packages/registry-native/blocks/order-confirmation/OrderConfirmation.tsx",
      "content": "import { View, type ViewProps } from 'react-native'\nimport { Check } from 'lucide-react-native'\nimport { Button } from '@/components/ui/button'\nimport { Icon } from '@/components/ui/icon'\nimport { Text } from '@/components/ui/text'\nimport { cn } from '@/lib/utils'\n\nexport interface OrderConfirmationProps extends Omit<ViewProps, 'children'> {\n  className?: string\n  title?: string\n  /** Visible order reference from the confirmed order. */\n  reference: string\n  nextStep?: string\n  /** Caller-localized handoff timing or an explicitly estimated delivery range. */\n  timing?: string\n  onViewReceipt?: () => void\n  onTrackOrder?: () => void\n  labels?: Partial<Record<'reference' | 'next' | 'receipt' | 'track', string>>\n}\n\nexport function OrderConfirmation({\n  className,\n  title = 'Order confirmed',\n  reference,\n  nextStep,\n  timing,\n  onViewReceipt,\n  onTrackOrder,\n  labels,\n  ...props\n}: OrderConfirmationProps) {\n  const track = labels?.track ?? 'Track order'\n  const receipt = labels?.receipt ?? 'View receipt'\n\n  return (\n    <View {...props} className={cn('gap-[16px] rounded-lg border border-border bg-card p-[16px]', className)}>\n      <View className=\"flex-row items-center gap-[12px]\">\n        <View aria-hidden className=\"size-[40px] shrink-0 items-center justify-center rounded-full bg-muted\">\n          <Icon icon={Check} size={22} className=\"text-card-foreground\" />\n        </View>\n        <Text size=\"title\" accessibilityRole=\"header\" className=\"min-w-0 flex-1 text-card-foreground\">\n          {title}\n        </Text>\n      </View>\n      <View className=\"gap-[4px]\">\n        <Text size=\"sm\" variant=\"muted\">\n          {labels?.reference ?? 'Order reference'}\n        </Text>\n        <Text selectable className=\"font-semibold text-card-foreground\">\n          {reference}\n        </Text>\n      </View>\n      {nextStep || timing ? (\n        <View className=\"gap-[4px] border-t border-border pt-[16px]\">\n          <Text size=\"sm\" variant=\"muted\">\n            {labels?.next ?? 'What happens next'}\n          </Text>\n          {nextStep ? <Text className=\"text-card-foreground\">{nextStep}</Text> : null}\n          {timing ? (\n            <Text size=\"sm\" className=\"font-medium text-card-foreground\">\n              {timing}\n            </Text>\n          ) : null}\n        </View>\n      ) : null}\n      {onViewReceipt || onTrackOrder ? (\n        <View className=\"gap-[8px]\">\n          {onTrackOrder ? (\n            <Button accessibilityLabel={track} onPress={onTrackOrder}>\n              {track}\n            </Button>\n          ) : null}\n          {onViewReceipt ? (\n            <Button variant=\"outline\" accessibilityLabel={receipt} onPress={onViewReceipt}>\n              {receipt}\n            </Button>\n          ) : null}\n        </View>\n      ) : null}\n    </View>\n  )\n}\n",
      "type": "registry:block",
      "target": "~/components/blocks/order-confirmation/OrderConfirmation.tsx"
    },
    {
      "path": "packages/registry-native/blocks/order-confirmation/index.ts",
      "content": "export { OrderConfirmation, type OrderConfirmationProps } from './OrderConfirmation'\n",
      "type": "registry:block",
      "target": "~/components/blocks/order-confirmation/index.ts"
    }
  ],
  "dependencies": [
    "lucide-react-native"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/button.json",
    "https://native.uipkge.dev/r/native/icon.json",
    "https://native.uipkge.dev/r/native/text.json",
    "https://native.uipkge.dev/r/native/utils.json"
  ],
  "description": "A confirmed order reference and next step with optional receipt and tracking actions.",
  "categories": [
    "commerce"
  ]
}