import { motion } from "motion/react"; import { FacebookEmbed } from 'react-social-media-embed'; interface TestimonialItem { key: string; src: string; } interface Props { sectionLabel: string; title: string; items: TestimonialItem[]; } const iframeProps = { width: 500, scrolling: 'no', frameBorder: 0, allowFullScreen: true, allow: 'autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share', style: { border: 'none', overflow: 'hidden' } as React.CSSProperties, } const fadeUp = (delay: number) => ({ initial: { opacity: 0, y: 18 }, whileInView: { opacity: 1, y: 0 }, viewport: { amount: 0.35, once: false }, transition: { duration: 0.55, ease: [0.22, 1, 0.36, 1] as const, delay, }, }) const slideUp = (delay: number) => ({ initial: { opacity: 0, y: 26 }, whileInView: { opacity: 1, y: 0 }, viewport: { amount: 0.25, once: false }, transition: { duration: 0.65, ease: [0.22, 1, 0.36, 1] as const, delay, }, }) export default function Grid({ sectionLabel, title, items }: Props) { const [featured, ...rest] = items const groups = [rest.slice(0, 2), rest.slice(2)] return (