"use client"; import { useState } from "react"; import { motion, AnimatePresence } from "framer-motion"; import { ArrowRight } from "lucide-react"; import { MobileFrame } from "./MobileFrame"; export default function MobileStack({ images }: { images: string[] }) { const [currentIndex, setCurrentIndex] = useState(0); const DRAG_THRESHOLD = -150; const getRelativeIndex = (index: number) => { const len = images.length; return (index - currentIndex + len) % len; }; const next = () => setCurrentIndex((prev) => (prev + 1) % images.length); return (