UNPKG

gebeya-whatsapp-otp

Version:

React WhatsApp OTP verification component with Supabase integration

9 lines (8 loc) 594 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Button } from "./ui/button"; import { Phone } from "lucide-react"; import { useWhatsAppOTPContext } from "./WhatsAppOTPProvider"; export const VerifyWithWhatsAppButton = ({ children, className, variant = "default", size = "default", disabled, }) => { const { openModal } = useWhatsAppOTPContext(); return (_jsxs(Button, { onClick: openModal, variant: variant, size: size, className: className, disabled: disabled, children: [_jsx(Phone, { className: "h-4 w-4 mr-2" }), children || "Verify with WhatsApp"] })); };