import React from 'react'; import { Box, Grid, Avatar, Image, ResponsiveContext, Heading } from 'grommet'; import { Card as Album } from './Card'; import { Artists } from '../interfaces'; import { size } from 'lodash'; export const Results = ({ artists }: { artists: Artists }) => { const { name: selectedName, image: selectedImage, albums: selectedAlbums, } = artists[0]; return (

{selectedName}

Other results

{artists.map((artist) => (

{artist.name}

))}
{(size) => ( Discography {selectedAlbums.map((album) => ( ))} )}
); };