gebeya-whatsapp-otp
Version:
React WhatsApp OTP verification component with Supabase integration
17 lines (16 loc) • 955 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { cn } from "../../utils/cn";
export const Dialog = ({ open, onOpenChange, children, }) => {
if (!open)
return null;
return (_jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center", children: [_jsx("div", { className: "fixed inset-0 bg-black/50", onClick: () => onOpenChange(false) }), _jsx("div", { className: "relative z-50", children: children })] }));
};
export const DialogContent = ({ className, children, }) => {
return (_jsx("div", { className: cn("relative bg-white rounded-lg shadow-lg p-6 w-full max-w-md mx-4", className), children: children }));
};
export const DialogHeader = ({ children }) => {
return _jsx("div", { className: "mb-4", children: children });
};
export const DialogTitle = ({ className, children, }) => {
return _jsx("h2", { className: cn("text-lg font-semibold", className), children: children });
};