"use client"; import { useMemo } from 'react'; import dynamic from 'next/dynamic'; import EventCard from '@/components/EventCard'; import { Satellite, Rocket, Moon, Sparkles } from 'lucide-react'; import { MissionControlProps } from '@/types/space'; const Starfield = dynamic(() => import('@/components/Starfield'), { ssr: false }); export default function MissionControl({ iss, moon }: MissionControlProps) { const BASE_TIME = 1769610273000; 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: 'starlink', title: "Starlink Train", date: new Date(BASE_TIME + 1000 * 60 * 45), endDate: new Date(BASE_TIME + 1000 * 60 * 55), icon: , }, { id: 'meteor', title: "Meteor Shower", date: new Date(BASE_TIME + 1000 * 60 * 60 * 24 * 10), endDate: new Date(BASE_TIME + 1000 * 60 * 60 * 24 * 10.1), icon: , } ], [iss, moon]); return (

MissionControl

Ground Station // [55.6761° N, 12.5683° E]

{events.map((event) => ( ))}
); }