'use client'; import { Icon } from '@iconify/react'; import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms'; import { LearningResourcesSection } from 'apps/landing/src/payload-types'; import { motion, useInView } from 'framer-motion'; import { useRef } from 'react'; export function LearningResources(props: LearningResourcesSection) { const { resources, featured, title, description } = props; const ref = useRef(null); const isInView = useInView(ref, { once: true, amount: 0.2 }); const containerVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.1, }, }, }; const itemVariants = { hidden: { y: 20, opacity: 0 }, visible: { y: 0, opacity: 1, transition: { duration: 0.5 }, }, }; return (

{title}

{description}

{resources.map((r, i) => (

{r.title}

{r.description}

))}
{featured.label}

{featured.title}

{featured.description}

); }