import React from 'react'; import { motion, Variants } from 'framer-motion'; import { COMPARISON_DATA } from '../../data/mockData'; import { ComparisonItem } from '../../types'; const ProblemSolution: React.FC = () => { // Jitter animation for "Problem" items const jitter: Variants = { animate: { x: [0, -2, 2, -1, 1, 0], y: [0, 1, -1, 0, 1, 0], opacity: [0.6, 0.8, 0.5, 0.7], transition: { duration: 2, // Slower, persistent unease repeat: Infinity, repeatType: "mirror", ease: "linear" } } }; // Smooth entry for "Solution" items const smoothEntry: Variants = { hidden: { opacity: 0, x: 20 }, visible: (i: number) => ({ opacity: 1, x: 0, transition: { delay: i * 0.1, duration: 0.8, ease: [0.22, 1, 0.36, 1] as [number, number, number, number] } }) }; return (
{/* LEFT SIDE: The Problem (Chaos) */}
{/* Heavy Noise Overlay */}

The Uncertainty

{COMPARISON_DATA.map((item: ComparisonItem) => (

{item.problem}

))}
{/* RIGHT SIDE: The Solution (Control) */}

The Standard

{COMPARISON_DATA.map((item: ComparisonItem, index: number) => (

{item.solution}

))}
{/* Subtle sheen effect on right side */}
); }; export default ProblemSolution;