import { useMemo } from 'react' import Icon from '../../Common/Icon' import styles from './styles.module.css' function NullKey() { return } export default function KeyValue(props) { const { param, index, value, source, onSelect } = props const title = source && `(${source.code}) ${source.description}` const text = source && {source?.symbol || source?.code} const icon = source?.faIcon && const handleClick = useMemo(() => function (event) { event.stopPropagation() onSelect({ target: event.target, codeIndex: index, code: value, param }) }, [param, value, index, onSelect]) return ( {icon || text || } ) }