import { AccessToken } from "@/types"; import { IconButton, Stack, Tooltip, Typography, styled, useTheme } from "@mui/material"; import { PlanetCard } from "./PlanetCard"; import { NoPlanetCard } from "./NoPlanetCard"; import Table from "@mui/material/Table"; import TableBody from "@mui/material/TableBody"; import TableCell from "@mui/material/TableCell"; import TableContainer from "@mui/material/TableContainer"; import TableHead from "@mui/material/TableHead"; import TableRow from "@mui/material/TableRow"; import Paper from "@mui/material/Paper"; import { PlanetTableRow } from "./PlanetTableRow"; import { Settings } from "@mui/icons-material"; import { PlanetCalculations } from "@/types/planet"; const StackItem = styled(Stack)(({ theme }) => ({ ...theme.typography.body2, padding: theme.custom.compactMode ? theme.spacing(1) : theme.spacing(2), textAlign: "left", justifyContent: "center", alignItems: "center", })); const PlanetaryIteractionTable = ({ character, planetDetails, }: { character: AccessToken; planetDetails: Record; }) => { const theme = useTheme(); if (character.needsLogin) return (

Character token has expired. Relogin to fix.

); return ( Planet CC Extraction Production Imports Exports Excluded uph ISK/M Storage% {character.planets.map((planet) => ( ))}
); }; const PlanetaryInteractionIconsRow = ({ character, planetDetails, }: { character: AccessToken; planetDetails: Record; }) => { return ( {character.planets.map((planet) => ( ))} {Array.from(Array(6 - character.planets.length).keys()).map((i, id) => ( ))} ); }; export const PlanetaryInteractionRow = ({ character, planetDetails, }: { character: AccessToken; planetDetails: Record; }) => { const theme = useTheme(); return theme.custom.compactMode ? (
) : (
); };