/** * Opt-In Prompt Component * * Reusable component to display opt-in message and button when user is not opted in */ import React from 'react'; interface OptInPromptProps { getString: (domain: string, key: string, fallback: string) => string; optinUrl?: string; } const OptInPrompt: React.FC = ({ getString, optinUrl }) => { return (
⚠️

{getString( 'common', 'automation_not_active', 'Automation features are not active yet.' )}

{getString( 'common', 'opt_in_to_enable', "Opt in to enable cloud-based automation. It's free!" )}

{optinUrl && (
{getString('common', 'opt_in', 'Opt In')}
)}

{getString( 'common', 'opt_in_email_confirmation', 'Already opted in? Please confirm your email using the activation link we sent.' )}

); }; export default OptInPrompt;