import React from 'react'; export interface WelcomeBannerProps { title?: string; subtitle?: string; buttonText?: string; backgroundColor?: 'primary' | 'secondary' | 'accent'; showButton?: boolean; } /** * Welcome Banner - Example Reactpify Component * * This component demonstrates how Reactpify automatically: * - Generates Shopify section settings from TypeScript props * - Creates Liquid templates with fallback content * - Bridges React components with Shopify themes */ export const WelcomeBanner: React.FC = ({ title = 'Welcome to Reactpify! 🚀', subtitle = 'Your React components are now working perfectly in Shopify', buttonText = 'Test React', backgroundColor = 'primary', showButton = true }) => { const handleClick = () => { alert('🎉 React is working! Your component is successfully integrated with Shopify.'); }; return (
{/* Background decoration */}
{/* Content */}

{title}

{subtitle}

{showButton && ( )} {/* Feature badges */}
{[ { icon: "🤖", text: "Auto-Generated" }, { icon: "⚡", text: "Vite Powered" }, { icon: "🎨", text: "Tailwind CSS" }, { icon: "🛍️", text: "Shopify Ready" } ].map((feature, index) => (
{feature.icon} {feature.text}
))}
); };