import * as React from 'react' import { HStack } from '../../styled-system/jsx' import { ErrorIcon, SuccessIcon } from './icons' interface TestScore { WCAG_AA: boolean WCAG_AAA: boolean } interface TestScoreProps { score: TestScore size: 'regular' | 'large' } export function TestScore(props: TestScoreProps) { const { score, size } = props return ( <> {score.WCAG_AA ? : } AA {size === 'regular' ? '4.5:1' : '3:1'} {score.WCAG_AAA ? : } AAA {size === 'regular' ? '7:1' : '4.5:1'} ) }