import React from "react";
import { TixaeWidget } from "tixae-widget";
const MyApp = () => {
return (
<div>
<h1>Advanced Configuration</h1>
<div className="widget-section">
<h2>Widget with User Data & VF Variables</h2>
<TixaeWidget
configs={[
{
ID: "your-widget-id",
region: "eu",
render: "bottom-right",
// Custom user data
user: {
name: "Jane Smith",
email: "jane@example.com",
phone: "+1987654321",
customField: "Custom user value",
},
// Custom user ID
userID: "custom-user-123",
// VF variables injection
vf_variables: {
from_vg: "This is injected from React component",
custom_var: "Custom variable value",
},
// Auto-start chat
autostart: true,
},
]}
/>
</div>
<div className="widget-section">
<h2>Widget with Custom Styling</h2>
<TixaeWidget
configs={[
{
ID: "another-widget-id",
region: "eu",
render: "bottom-left",
// Modal mode
modalMode: true,
// Custom stylesheets
stylesheets: [
"https://vg-bunny-cdn.b-cdn.net/vg_live_build/styles.css",
"/path/to/your/custom.css",
],
// Theme customization
variables: {
roundedImageURL: "https://example.com/rounded-image.jpg",
avatarImageUrl: "https://example.com/avatar.jpg",
headerImageUrl: "https://example.com/header.jpg",
bannerImageUrl: "https://example.com/banner.jpg",
},
},
]}
/>
</div>
</div>
);
};
export default MyApp;