import { useBreakpoint } from 'common/hooks/useBreakpoint' import { motion, useScroll, useTransform } from 'motion/react' import Image from 'next/image' import styles from './lw7-bg-graphic.module.css' export default function LW7BgGraphic() { const { scrollYProgress } = useScroll() const isMobile = useBreakpoint(768) const graphicsY = useTransform( scrollYProgress, // Map scrollYProgress from these values: [0, 0.5], // Into these values: [0, isMobile ? 70 : 200] ) return (