import styles from './styles.module.css';
import React from 'react';
import MartySkiIcon from '../assets/marty-ski.png';
import MartyFlyIcon from '../assets/marty-in-plane.png';
import ConfettiExplosion from '../ConfettiExplosion';
import { FiRepeat, FiArrowRightCircle } from 'react-icons/fi';

type Props = {
    keepPlaying?: () => void;
    goNext?: () => void;
};

const ShouldIStayOrShouldIGo: React.FC<Props> = ({ keepPlaying, goNext }) => {
    return (
        <div className={styles.container}>
            <ConfettiExplosion />
            <div className={styles.background}>
                <h1 className={styles.emojiTitle}>🎉 Well Done! 🎉</h1>
                {/* <div className={styles.character}>
                    <img src={MartyIcon} alt="Marty Celebrating" className={styles.mainMarty} />
                </div> */}
                <div className={styles.buttons}>
                    <div className={styles.buttonWrapper} onClick={keepPlaying}>
                        <button className={`${styles.button} ${styles.buttonPlayAgain}`} >
                            <img
                                src={MartyFlyIcon}
                                alt="Play Again"
                                className={`${styles.buttonImage} ${styles.float}`}
                            />
                        </button>
                        <span className={styles.label}>
                            <FiRepeat className={styles.icon} />
                            Play Again
                        </span>
                    </div>

                    <div className={styles.buttonWrapper}  onClick={goNext}>
                        <button className={`${styles.button} ${styles.buttonNextLevel}`}>
                            <img
                                src={MartySkiIcon}
                                alt="Next Level"
                                className={`${styles.buttonImage} ${styles.slalom}`}
                            />
                        </button>
                        <span className={styles.label}>
                            <FiArrowRightCircle className={styles.icon} />
                            Next Level
                        </span>
                    </div>
                </div>
            </div>
        </div>
    );
};

export default ShouldIStayOrShouldIGo;