"use client"; import { useMemo } from 'react'; import EventCard from '@/components/EventCard'; import { Satellite, Rocket, Moon, Sparkles } from 'lucide-react'; import { MissionControlProps } from '@/types/space'; import { motion } from 'framer-motion'; export default function MissionControl({ iss, moon, cosmic, launch }: MissionControlProps) { const events = useMemo(() => [ { id: 'iss', title: "ISS Overhead: Home", date: iss.start, endDate: iss.end, icon: , }, { id: 'moon', title: moon.title, date: moon.start, endDate: moon.end, icon: , }, { id: 'cosmic', title: cosmic.title, date: cosmic.start, endDate: cosmic.end, icon: , }, { id: 'launch', title: launch.title, date: launch.start, endDate: launch.end, icon: , } ], [iss, moon, cosmic, launch]); return (
{events.map((event, index) => (
{event.id === 'iss' && "ISS Zenith // CPH"} {event.id === 'moon' && "Lunar Cycle"} {event.id === 'cosmic' && "Celestial Event"} {event.id === 'launch' && "Launch Schedule"}
))}
); }