"use client"; import React from 'react'; import { OverlaySettings } from '@/lib/types'; import SupportModule from './SupportModule'; interface StyleControlsProps { settings: OverlaySettings; updateSettings: (newSettings: Partial) => void; } export default function StyleControls({ settings, updateSettings }: StyleControlsProps) { const [copySuccess, setCopySuccess] = React.useState(false); const handleChange = (e: React.ChangeEvent) => { const { name, value, type } = e.target; let newValue: string | number | boolean = value; if (type === 'range') { newValue = parseFloat(value); } else if (type === 'checkbox') { newValue = (e.target as HTMLInputElement).checked; } updateSettings({ [name]: newValue }); }; const handleEmoteChange = (e: React.ChangeEvent) => { const { name, checked } = e.target; updateSettings({ emotes: { ...settings.emotes, [name]: checked, }, }); }; const copyLink = () => { // Mock token for now const url = `${window.location.origin}/overlay/mock-token`; navigator.clipboard.writeText(url); setCopySuccess(true); setTimeout(() => setCopySuccess(false), 2000); }; return (
{/* Copy Link Section */}

Overlay URL

Style Editor

Customize your chat appearance

{/* Resolution */}
{/* Font Family */}
{/* Font Size */}
{/* Text Color */}
{/* Background Color */}
{/* Background Opacity */}
{/* Toggles */}
); }