import React from 'react'; import { Box, Grid, ResponsiveContext, Heading } from 'grommet'; import { Album } from './Album'; import { Artists } from '../interfaces'; import { Other } from './Other'; export const Results = ({ artists, handleClick, }: { artists: Artists; handleClick: ((...args: any[]) => any) & ((event: MouseEvent) => void); }) => { const { name: selectedName, image: selectedImage, albums: selectedAlbums, } = artists[0]; return ( {selectedName} Other results {(size) => ( {artists.slice(1, artists.length).map((artist) => ( ))} )} Discography {(size) => ( {selectedAlbums.map((album) => ( ))} )} ); };