Skip to content

Commit

Permalink
TableBody has the first version
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitardanailov committed May 29, 2024
1 parent bbbb622 commit 030045a
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use client'

import {FC} from 'react'

import {CoingeckoSimplePriceResponse} from '@/types/coingecko/simplePrices'

export interface Props {
prices: Array<CoingeckoSimplePriceResponse>
}

const CoingeckoTableBody: FC<Props> = ({prices}) => {
const listItems = prices.map(
(prices: CoingeckoSimplePriceResponse, index: number) => (
<li key={index}>{prices.cryptoCurrency}</li>
),
)

return <>{listItems}</>
}

export default CoingeckoTableBody

0 comments on commit 030045a

Please sign in to comment.