import { BuildIcon } from '@expo/styleguide-icons'; import { Command } from 'cmdk'; import type { ExpoItemType } from '../types'; import { addHighlight, openLink } from '../utils'; import { CALLOUT } from '~/ui/components/Text'; type Props = { item: ExpoItemType; query: string; onSelect?: () => void; }; export const ExpoItem = ({ item, onSelect, query }: Props) => { const Icon = item.Icon ?? BuildIcon; return ( { openLink(item.url); onSelect && onSelect(); }}>
); };