import { motion } from "motion/react"; import { Star } from "lucide-react"; type Testimonial = { name: string; handle: string; text: string; rating: number; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); type HeroSplitTestimonialProps = { tag: string; title: string; description: string; primaryButton: { text: string; href: string }; secondaryButton: { text: string; href: string }; testimonials: Testimonial[]; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); const HeroSplitTestimonial = ({ tag, title, description, primaryButton, secondaryButton, imageSrc, videoSrc, testimonials, }: HeroSplitTestimonialProps) => { const testimonial = testimonials[0]; return (
{tag} {title} {description}
{primaryButton.text} {secondaryButton.text}
{videoSrc ? (
); }; export default HeroSplitTestimonial;