import { Dialog, DialogContent, Tooltip, Zoom } from '@mui/material'; import ArrowRightAltIcon from '@mui/icons-material/ArrowRightAlt'; import './InfoDialogComponent.css'; import { findPokeTypeAsset } from 'components/PokemonTypes'; import { colorTypeGradients } from 'components/utils'; import GenderRate from 'components/GenderRate'; import Delayed from 'components/Delayed'; import EvolutionSpecies, { EvolutionSpeciesProps, } from 'components/EvolutionSpecies'; export interface Stat { stat__name: string; stat__value: number; } export interface InfoDialogComponentProps { openDialog: boolean; closeDialog: () => void; id: number; name: string; types: string[]; genera: string; image: string; height: number; weight: number; genderRatio: number; description: string; abilities: string[]; stats: Stat[]; evolutionChain: EvolutionSpeciesProps[]; } const InfoDialog = ({ openDialog, closeDialog, id, name, types, genera, image, height, weight, genderRatio, description, abilities, stats, evolutionChain, }: InfoDialogComponentProps) => { const finalColor = colorTypeGradients(types); return (