import { GithubIcon } from '@expo/styleguide-icons'; import type { RNDirectoryItemType } from '../types'; import { addHighlight } from '../utils'; import { CommandItemBase } from './CommandItemBase'; import { ExternalLinkIcon } from './icons'; import { CALLOUT, CAPTION } from '~/ui/components/Text'; type Props = { item: RNDirectoryItemType; query: string; onSelect?: () => void; }; const numberFormat = new Intl.NumberFormat(); export const RNDirectoryItem = ({ item, onSelect, query }: Props) => { return (
{numberFormat.format(item.github.stats.stars)} stars ยท{' '} {numberFormat.format(item.npm.downloads)} downloads
); };