import { Icon, Tabs, DataList, List } from '@chakra-ui/react'; import type {PlayMatchResult} from "../../core/Atomic"; import { PlayData } from "./PlayData"; import { LuCheck, LuX } from "react-icons/lu"; import { formatNumber } from "../../core/DataUtils"; export interface ScrobbleMatchResultProps { match: PlayMatchResult } export const ScrobbleMatchResult = (props: ScrobbleMatchResultProps) => { const { match: { closestMatchedPlay } = {}, match } = props; return ( Results Closest Match Matched? {match.match ? : } Score {formatNumber(match.score)} Reason {match.reason} Breakdown {match.breakdowns.map((x, index) => { if (x !== null && x !== undefined && x.includes('Time Detail')) { const sub = x.substring(15).split('|'); return ( {sub.map((y, index) => {y})} ) } return {x} })} ) }