Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import { connectStats } from 'react-instantsearch-dom';
import { formatNumber } from '../utils';
const SaveFiltersMobile = ({ nbHits, onClick }) => (
<button>
See {formatNumber(nbHits)} results
</button>
);
export default connectStats(SaveFiltersMobile);
import React from 'react';
import { connectStats } from 'react-instantsearch-dom';
import { formatNumber } from '../utils';
const ResultsNumberMobile = ({ nbHits }) => (
<div>
<strong>{formatNumber(nbHits)}</strong> results
</div>
);
export default connectStats(ResultsNumberMobile);