import { AccessToken } from "@/types"; import { 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"; 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, }: { character: AccessToken; }) => { const theme = useTheme(); if (character.needsLogin) return (
Character token has expired. Relogin to fix.
); return (