const FloatingContact = () => {
const [isOpen, setIsOpen] = React.useState(false);
const t = (key, fallback) => {
return (window.VILLA_TRANSLATIONS && window.VILLA_TRANSLATIONS[key]) ? window.VILLA_TRANSLATIONS[key] : fallback;
};
const phone = t('business_phone', '[Template / Placeholder]');
const cleanPhone = phone.replace(/[^0-9]/g, '');
const email = t('business_email', '[Template / Placeholder]');
return (
{/* Options */}
{/* Main Toggle Button */}
);
};
const contactRoot = ReactDOM.createRoot(document.getElementById('floating-contact-root'));
contactRoot.render();