'use client' import { useEffect } from "react" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/ui/dialog" interface GetFreeMachineModalProps { open: boolean onOpenChange: (open: boolean) => void } export function GetFreeMachineModal({ open, onOpenChange }: GetFreeMachineModalProps) { useEffect(() => { if (open) { // Load the form embed script when modal opens const script = document.createElement("script") script.src = "https://link.sluice-box.io/js/form_embed.js" script.async = true document.body.appendChild(script) return () => { if (document.body.contains(script)) { document.body.removeChild(script) } } } }, [open]) return ( Get Your Free Vending Machine Fill out the form below and we'll contact you within 24 hours to discuss your needs.