import React from 'react';
import styled from 'styled-components';
import ListItem from './ListItem';
import FullWidthDiv from './FullWidthDiv';
import Result from './Result';
const List = styled.div`
margin: 5px;
display: flex;
flex-direction: column;
`;
const filenameTitle = { fontWeight: '600' };
const FilenameResults = ({ searchValue, results, rateLimitMessage }) => {
const elements = results.map((result) => {
const { filename, prs: prObjects } = result;
const prs = prObjects.map(({ number, username, title }, index) => {
return {prs}