import { motion } from 'framer-motion' import Image from 'next/image' import React from 'react' type animateFromType = 'left' | 'right' | 'up' | 'down' | 'opacityOnly' export default function LaunchWeekPrizeCard({ imageUrl = '', imageWrapperClassName, content, className, animateFrom, imgObjectPosition = 'center', }: { imageUrl: string imageWrapperClassName?: string content: any className?: string animateFrom?: animateFromType imgObjectPosition?: string }) { const finalState = { x: 0, y: 0, opacity: 1 } function getAnimationFrom(animationDirection: animateFromType) { switch (animationDirection) { case 'left': return { x: -20, opacity: 0 } case 'up': return { y: -20, opacity: 0 } case 'right': return { x: 20, opacity: 0 } case 'down': return { y: 20, opacity: 0 } case 'opacityOnly': return { opacity: 0 } } } return (
{content && content}
) }