import * as React from 'react' import { Flex, HStack, Square, Stack, panda } from '../../styled-system/jsx' import { EmptyState } from './empty-state' import { TypographyIcon } from './icons' import type { useThemeTokens } from '../lib/use-theme-tokens' const letters = Array.from({ length: 26 }, (_, i) => String.fromCharCode(65 + i)) const symbols = Array.from({ length: 10 }, (_, i) => String.fromCharCode(48 + i)) const specials = ['@', '#', '$', '%', '&', '!', '?', '+', '-'] type Token = ReturnType[number] interface FontFamilyProps { fonts: Token[] } export function FontFamily({ fonts }: FontFamilyProps) { if (fonts.length === 0) { return ( }> The panda config does not contain any font family ) } return ( {fonts.map((font) => ( Ag {letters.map((letter) => ( {letter} ))} {letters.map((letter) => ( {letter} ))} {symbols.map((sym) => ( {sym} ))} {specials.map((sym) => ( {sym} ))} {font.extensions.prop} {font.value} ))} ) }