import type { GetServerSideProps } from 'next'
import OperatorOperationsPage from '@/components/explorer/OperatorOperationsPage'
import type { MissionControlBridgeStatusResponse } from '@/services/api/missionControl'
import type { InternalExecutionPlanResponse, PlannerCapabilitiesResponse } from '@/services/api/planner'
import type { RouteMatrixResponse } from '@/services/api/routes'

interface OperatorPageProps {
  initialBridgeStatus: MissionControlBridgeStatusResponse | null
  initialRouteMatrix: RouteMatrixResponse | null
  initialPlannerCapabilities: PlannerCapabilitiesResponse | null
  initialInternalPlan: InternalExecutionPlanResponse | null
}

export default function OperatorPage(props: OperatorPageProps) {
  return <OperatorOperationsPage {...props} />
}

export const getServerSideProps: GetServerSideProps<OperatorPageProps> = async () => ({
  props: {
    initialBridgeStatus: null,
    initialRouteMatrix: null,
    initialPlannerCapabilities: null,
    initialInternalPlan: null,
  },
})
