<commit_before>import React, { FC } from 'react'
import { styled } from 'rt-theme'
import numeral from 'numeral'

interface ToolTipProps {
  payload: any[]
}

export const ToolTipStyle = styled.div`
  background-color: #14161c;
  width: 100px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
`

export const ToolTipChildCenter = styled.div`
  width: 30px;
  font-size: 10px;
  color: ${({ theme }) => theme.template.white.normal};
`

const AnalyticsTileTooltip: FC<ToolTipProps> = ({ payload }) => {
  return (
    <ToolTipStyle>
      <ToolTipChildCenter>{payload.length > 0 && numeral(payload[0].value).format('0.00a')}</ToolTipChildCenter>
    </ToolTipStyle>
  )
}<commit_msg>typed payload in tooltip props<commit_after>import React, { FC } from 'react'
import { styled } from 'rt-theme'
import numeral from 'numeral'

interface Data {
  value: number
}
interface ToolTipProps {
  payload: Data[]
}

export const ToolTipStyle = styled.div`
  background-color: #14161c;
  width: 100px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
`

export const ToolTipChildCenter = styled.div`
  width: 30px;
  font-size: 10px;
  color: ${({ theme }) => theme.template.white.normal};
`

const AnalyticsTileTooltip: FC<ToolTipProps> = ({ payload }) => {
  return (
    <ToolTipStyle>
      <ToolTipChildCenter>{payload.length > 0 && numeral(payload[0].value).format('0.00a')}</ToolTipChildCenter>
    </ToolTipStyle>
  )
}
{'fraction_non_alphanumeric': 0.14247491638795987, 'fraction_numerical': 0.024080267558528427, 'mean_word_length': 4.286219081272085, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6723057', 'n_tokens_mistral': 530, 'n_tokens_neox': 506, 'n_words': 116}