import React from 'react';
import { instructors_data } from '../../../data';
import { motion } from 'framer-motion';
import { useMouseMoveUI } from '../../../contexts/mouse-move-context';
import TeamThree from "../../team-member/team-three";

const TeamArea = ({ about_p_2, about_p_3 }) => {
    const { mouseDirection, mouseReverse } = useMouseMoveUI();
    return (
        <div className={`edu-team-area team-area-${about_p_2 ? '6' : '3'} edu-section-gap ${about_p_3 ? 'z-10' : ''}`}>
            <div className="container">
                <div className="section-title section-center" data-sal-delay="150" data-sal="slide-up" data-sal-duration="800">
                    <span className="pre-title">Instructors</span>
                    <h2 className="title"></h2>
                    <span className="shape-line"><i className="icon-19"></i></span>
                </div>

                <div className="row g-5">
                    {instructors_data.slice(1,4).map((instructor) => (
                        <div key={instructor.id} className="col-lg-4 col-md-6" data-sal-delay={instructor.delay} data-sal="slide-up" data-sal-duration="800">
                            <TeamThree instructor={instructor} />
                        </div>
                    ))}
                </div>
            </div>

            <ul className="shape-group">
                <motion.li className="shape-1 scene" data-sal-delay="200" data-sal="fade" data-sal-duration="800"
                    animate={ {
                        x: mouseDirection(30).x,
                        y: mouseDirection(30).y
                    } }
                >
                    <img src="/assets/images/others/shape-26.png" alt="shape" />
                </motion.li>
            </ul>
        </div>
    )
}

export default TeamArea;