2023-01-03 13:31:47 +01:00
|
|
|
import React from 'react'
|
|
|
|
|
import Result from './Result'
|
|
|
|
|
|
2023-02-16 00:05:13 +01:00
|
|
|
const Results = ({data, term}) => {
|
2023-01-03 13:31:47 +01:00
|
|
|
|
2023-03-08 12:08:29 +01:00
|
|
|
console.log(data)
|
2023-01-03 13:31:47 +01:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className='
|
|
|
|
|
flex flex-col justify-around gap-5
|
|
|
|
|
|
|
|
|
|
py-5
|
|
|
|
|
w-[90vw]
|
|
|
|
|
mt-5
|
|
|
|
|
m-auto
|
|
|
|
|
laptop:mt-0
|
|
|
|
|
laptop:ml-[8rem]
|
|
|
|
|
laptop:w-[55vw]
|
|
|
|
|
bg-[#202124]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'>
|
2023-02-16 00:05:13 +01:00
|
|
|
{data.map((result) => <Result key={result._id} result={result} term={term}/>)}
|
2023-01-03 13:31:47 +01:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Results
|