import React from 'react'; import { useTranslation } from 'react-i18next'; import { RiNpmjsFill, RiNpmjsLine } from 'react-icons/ri'; import { Card, DedicatedAvailability, Repeater } from '../core'; const NpmCard: React.FC<{ query: string }> = ({ query }) => { const { t } = useTranslation(); const lowerCase = query.toLowerCase(); const names = [lowerCase, `${lowerCase}-js`]; const moreNames = [`${lowerCase}js`]; return ( {(name) => ( <> } /> } /> )} ); }; export default NpmCard;