function CTAButton() {
const { value: buttonStyle } = useConfig('button_style');
const track = useTrack();
const styles = {
default: {
backgroundColor: '#007bff',
borderRadius: '4px',
padding: '12px 24px'
},
bold: {
backgroundColor: '#ff4500',
borderRadius: '8px',
padding: '16px 32px',
fontWeight: 'bold'
},
minimal: {
backgroundColor: 'transparent',
border: '2px solid #007bff',
borderRadius: '4px',
padding: '12px 24px'
}
};
const style = styles[buttonStyle || 'default'];
const handleClick = () => {
track('cta_button_clicked', { button_style: buttonStyle || 'default' });
};
return (
<button style={style} onClick={handleClick}>
Sign Up
</button>
);
}