import React from "react"; import {useTheme} from "@mui/material/styles"; import { AccordionDetails, AccordionSummary, Grid2, Table, TableBody, TableCell, TableContainer, TableRow, Typography } from "@mui/material"; import {IBuilding, IBuildingAddon} from "../../types/IBuilding"; import AvTimerOutlinedIcon from "@mui/icons-material/AvTimer"; import {ExpandMore} from "@mui/icons-material"; import {IMod} from "../../types/Imod"; import {getIcon, ModifiersProvidesTable,} from "../ModifiersProvideTable"; import Required from "../Required"; import {StyledAccordion} from "../../commons/StyledAccordion"; import {StyledPaper} from "../../commons/StyledPaper"; import {styled} from "@mui/material/styles"; interface IBuildingAddonProps { addon: IBuildingAddon, building: IBuilding, mod: IMod, } function BuildingAddon(props: IBuildingAddonProps){ const theme = useTheme(); const isDark = theme.palette.mode === 'dark'; const textColor = isDark ? '#dee2e6' : 'rgba(0, 0, 0, 0.85)'; const addon = props.addon const building = props.building return
} aria-controls="panel1-content" >   {addon.name} Cost {addon.addonCostRequisition > 0 &&    {addon.addonCostRequisition.toFixed(0)}} {addon.addonCostPower > 0 &&    {addon.addonCostPower.toFixed(0)}} {(addon.addonCostPopulation !== undefined && addon.addonCostPopulation > 0) &&    {addon.addonCostPopulation.toFixed(0)}} {(addon.addonCostFaith !== undefined && addon.addonCostFaith > 0) &&    {addon.addonCostFaith}} {(addon.addonCostSouls !== undefined && addon.addonCostSouls > 0) &&    {addon.addonCostSouls.toFixed(0)}} {(addon.addonCostTime !== undefined && addon.addonCostTime > 0) &&    {addon.addonCostTime}s}

{addon.description} {addon.addonRequirement !== null && }
Hotkey: {addon.hotkey} Filename: {addon.filename}
} export default BuildingAddon;