{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "family-receive-button-base",
  "type": "registry:component",
  "title": "Family Receive Button (base)",
  "description": "Theme-ready base variant of Features a toggle button that transforms into a full confirmation modal with backdrop blur and elegant motion design..",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "files": [
    {
      "path": "components/watermelon/family-receive-button.tsx",
      "type": "registry:component",
      "content": "'use client';\n\nimport React, { useState } from 'react';\nimport {\n  motion,\n  AnimatePresence,\n  LayoutGroup,\n  type Transition,\n} from 'motion/react';\nimport { X, Fingerprint } from 'lucide-react';\n\nexport interface FamilyReceiveComponentProps {\n  triggerLabel?: string;\n  title?: string;\n  description?: string;\n  confirmLabel?: string;\n  cancelLabel?: string;\n  onConfirm?: () => void;\n  icon?: React.ReactNode;\n}\n\nconst springTransition: Transition = {\n  type: 'spring',\n  bounce: 0,\n  duration: 0.4,\n};\n\nexport const FamilyReceiveComponent: React.FC<FamilyReceiveComponentProps> = ({\n  triggerLabel = 'Receive',\n  title = 'Confirm',\n  description = 'Are you sure you want to receive hell load of money?',\n  confirmLabel = 'Receive',\n  cancelLabel = 'Cancel',\n  onConfirm,\n  icon,\n}) => {\n  const [isOpen, setIsOpen] = useState(false);\n\n  return (\n    <div className=\"theme-injected relative flex h-[400px] w-[320px] max-w-full items-center justify-center md:w-[520px]\">\n      <LayoutGroup>\n        <AnimatePresence>\n          {!isOpen && (\n            <motion.button\n              key=\"trigger\"\n              layoutId=\"action-button\"\n              onClick={() => setIsOpen(true)}\n              className=\"bg-primary text-primary-foreground relative h-12 w-64 cursor-pointer rounded-lg text-lg font-medium shadow-lg md:h-14 md:w-96 md:text-xl\"\n              whileTap={{ scale: 0.95 }}\n              transition={springTransition}\n            >\n              {triggerLabel}\n            </motion.button>\n          )}\n        </AnimatePresence>\n\n        <AnimatePresence>\n          {isOpen && (\n            <motion.div\n              key=\"overlay\"\n              initial={{ opacity: 0 }}\n              animate={{ opacity: 1 }}\n              exit={{ opacity: 0 }}\n              className=\"absolute inset-0 z-10 flex items-center justify-center px-4 backdrop-blur-sm\"\n            >\n              <motion.div\n                initial={{ y: 100, opacity: 0, scale: 0.98 }}\n                animate={{ y: 0, opacity: 1, scale: 1 }}\n                exit={{ y: 100, opacity: 0, scale: 0.98 }}\n                transition={springTransition}\n                className=\"border-border bg-card text-card-foreground relative w-[280px] max-w-full overflow-hidden rounded-sm border p-5 md:w-[520px] md:p-6\"\n              >\n                <button\n                  onClick={() => setIsOpen(false)}\n                  className=\"text-muted-foreground hover:text-foreground absolute top-5 right-5\"\n                >\n                  <X size={24} />\n                </button>\n\n                <div className=\"mb-4 flex items-center gap-3\">\n                  <div className=\"bg-primary/10 text-primary flex h-8 w-8 items-center justify-center rounded-sm md:h-10 md:w-10\">\n                    {icon ?? <Fingerprint size={28} />}\n                  </div>\n                  <h2 className=\"text-card-foreground text-xl font-semibold md:text-2xl\">\n                    {title}\n                  </h2>\n                </div>\n\n                <p className=\"text-muted-foreground my-4 max-w-xs text-lg font-semibold md:my-6 md:text-xl\">\n                  {description}\n                </p>\n\n                <div className=\"flex gap-3\">\n                  <button\n                    onClick={() => setIsOpen(false)}\n                    className=\"bg-muted text-muted-foreground hover:bg-muted/90 h-11 flex-1 rounded-lg text-base font-medium md:h-13 md:text-lg\"\n                  >\n                    {cancelLabel}\n                  </button>\n\n                  <motion.button\n                    layoutId=\"action-button\"\n                    onClick={() => {\n                      onConfirm?.();\n                      setIsOpen(false);\n                    }}\n                    className=\"bg-primary text-primary-foreground hover:bg-primary/90 h-11 flex-1 cursor-pointer rounded-lg text-base font-medium md:h-13 md:text-lg\"\n                    transition={springTransition}\n                  >\n                    {confirmLabel}\n                  </motion.button>\n                </div>\n              </motion.div>\n            </motion.div>\n          )}\n        </AnimatePresence>\n      </LayoutGroup>\n    </div>\n  );\n};\n"
    }
  ]
}
