import { AccessToken } from "@/types"; import { Box, Stack, Typography, useTheme } from "@mui/material"; import { CharacterRow } from "../Characters/CharacterRow"; import { PlanetaryInteractionRow } from "../PlanetaryInteraction/PlanetaryInteractionRow"; import { SessionContext } from "@/app/context/Context"; import { useContext } from "react"; import { PlanRow } from "./PlanRow"; export const AccountCard = ({ characters }: { characters: AccessToken[] }) => { const theme = useTheme(); const { planMode } = useContext(SessionContext); return ( {characters[0].account !== "-" ? `Account: ${characters[0].account}` : "No account name"} {characters.map((c) => ( {planMode ? ( ) : ( )} ))} ); };