From 030045a2f13820346614c12e2af30fa1ea0b0455 Mon Sep 17 00:00:00 2001 From: Dimitar Danailov Date: Wed, 29 May 2024 08:29:43 +0300 Subject: [PATCH] TableBody has the first version --- .../dashboard-trade/Components/TableBody.tsx | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apps/website/src/app/demos/dashboard-trade/Components/TableBody.tsx diff --git a/apps/website/src/app/demos/dashboard-trade/Components/TableBody.tsx b/apps/website/src/app/demos/dashboard-trade/Components/TableBody.tsx new file mode 100644 index 0000000..8623a6c --- /dev/null +++ b/apps/website/src/app/demos/dashboard-trade/Components/TableBody.tsx @@ -0,0 +1,21 @@ +'use client' + +import {FC} from 'react' + +import {CoingeckoSimplePriceResponse} from '@/types/coingecko/simplePrices' + +export interface Props { + prices: Array +} + +const CoingeckoTableBody: FC = ({prices}) => { + const listItems = prices.map( + (prices: CoingeckoSimplePriceResponse, index: number) => ( +
  • {prices.cryptoCurrency}
  • + ), + ) + + return <>{listItems} +} + +export default CoingeckoTableBody