import React, { CSSProperties, useState } from 'react'; import { useNode, UserComponent } from '@craftjs/core'; import { cssPropsToString } from '../../utils/style-helpers'; interface Testimonial { quote: string; name: string; title: string; rating: number; } interface TestimonialsProps { testimonials?: Testimonial[]; layout?: 'grid' | 'single'; columns?: number; style?: CSSProperties; cardBg?: string; starColor?: string; } const defaultTestimonials: Testimonial[] = [ { quote: 'This product has completely transformed our workflow. Highly recommended for any team.', name: 'Sarah Johnson', title: 'Marketing Director', rating: 5 }, { quote: 'Outstanding support and an incredibly intuitive interface. We saw results from day one.', name: 'Michael Chen', title: 'CTO, TechStart', rating: 5 }, { quote: 'The best investment we have made this year. Simple, powerful, and reliable.', name: 'Emily Rodriguez', title: 'Founder, DesignLab', rating: 4 }, ]; function renderStars(count: number, color: string): React.ReactNode { return (
“{t.quote}”
“${esc(t.quote)}”