import { css } from "@emotion/react"; import styled from "@emotion/styled"; import { HeadingSmall, LabelMedium } from "baseui/typography"; import numeral from "numeral"; const Group = styled.div<{ mb?: number }>` display: flex; flex-direction: row; margin-top: 20px; margin-bottom: 50px; ${({ mb }) => mb && css` margin-bottom: ${mb}px; `} `; export type StatsProps = { stats: { scrobbles: number; artists: number; lovedTracks: number; }; mb?: number; }; function Stats(props: StatsProps) { const { stats, mb } = props; return (
SCROBBLES {numeral(stats?.scrobbles).format("0,0")}
ARTISTS {numeral(stats?.artists).format("0,0")}
LOVED TRACKS {numeral(stats?.lovedTracks).format("0,0")}
); } export default Stats;