---
import LoggedIn from '../../layouts/LoggedIn.astro';
import { Planet } from '../../lib/classes/managers/PlanetManager';
import SystemManager from '../../lib/classes/managers/SystemManager';

const active: SystemManager | Planet = Astro.locals.active;
---
<LoggedIn id="overview" title="Overview">
	<h1>{active instanceof SystemManager ? `${active.data.name} system` : `${active.name} in ${active.system.data.name}`}</h1>
</LoggedIn>
<style>
h1 {
	color: white;
}
</style>