import { ReactNode } from 'react'; import { Box } from './Box'; import { Surface } from './Surface'; import { Text } from './Text'; export interface ResultRowProps { children: ReactNode; isHighlighted?: boolean; } export const ResultRow = ({ children, isHighlighted }: ResultRowProps) => { return ( {children} ); }; export interface PositionBadgeProps { position: number; } export const PositionBadge = ({ position }: PositionBadgeProps) => { const getIntent = (pos: number) => { if (pos === 1) return 'warning'; if (pos === 2) return 'low'; if (pos === 3) return 'warning'; return 'low'; }; return ( {position} ); }; export interface ResultPointsProps { points: number; } export const ResultPoints = ({ points }: ResultPointsProps) => ( PTS {points} );