import { useState } from 'react'; export default function IframeWithModal() { const [isOpen, setIsOpen] = useState(false); const appCode = "4eFb0BunqZYEZlg7"; const baseUrl = "https://ai-studio.bliv.bangunindo.io"; const iframeSrc = `${baseUrl}/chatbot-auth/${appCode}/history`; const toggleModal = (val: boolean) => { setIsOpen(val); document.body.style.overflow = val ? 'hidden' : ''; }; return (
🔐

Chatbot Modal Demo

Authenticated • With History • Iframe Modal

Configuration
Auth Enabled History On
Authentication Required
Mechanism Iframe Modal
{isOpen && (
toggleModal(false)} style={{ position: 'fixed', inset: 0, background: 'rgba(0, 0, 0, 0.4)', backdropFilter: 'blur(8px)', zIndex: 1000, display: 'flex', alignItems: 'center', justifyContent: 'center', padding: 20 }} >
e.stopPropagation()} style={{ background: 'white', borderRadius: 24, width: '100%', maxWidth: 800, height: '80vh', maxHeight: 600, display: 'flex', flexDirection: 'column', overflow: 'hidden', boxShadow: '0 25px 50px -12px rgba(0, 0, 0, 0.25)' }} >

Bliv AI Chatbot