import getWN8Percentile from '../../core/blitz/getWN8Percentile'; import isNumber from '../../core/node/isNumber'; import { AllStats, SupplementaryStats } from '../../types/accountInfo'; import { Card } from './components/Card'; import { Root } from './components/Root'; import { Row } from './components/Row'; // TODO: remove the .js endings export interface GenericAllStatsProps { stats: AllStats; supplementaryStats?: SupplementaryStats; } export default function GenericAllStats({ stats, supplementaryStats, }: GenericAllStatsProps) { const damageRatio = stats.damage_dealt / stats.damage_received; const killsToDeathRatio = stats.frags / (stats.battles - stats.survived_battles); return ( ); }