import React from 'react'; import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell, } from '@digigov/ui/content/Table'; const data = { title: 'Πίνακας προϊόντων', labels: { product: 'Προϊόν', price: 'Χοντρική Τιμή', retailPrice: 'Λιανική Τιμή', stock: 'Στοκ', date: 'Ημερομηνία', }, content: [ { product: 'Τυρί', price: '2.9€', retailPrice: '4.9€', stock: 20, date: '2013-04-01', }, { product: 'Γάλα', price: '1.1€', retailPrice: '1.9€', stock: 32, date: '2013-01-01', }, { product: 'Γιαούρτι', price: '1.6€', retailPrice: '2.4€', stock: 12, date: '2002-04-12', }, { product: 'Κρέμα', price: '2.9€', retailPrice: '3.9€', stock: 8, date: '2011-12-12', }, { product: 'Βούτυρο', price: '0.4€', retailPrice: '0.9€', stock: 99, date: '2019-06-01', }, { product: 'Καφές', price: '1.5€', retailPrice: '2.9€', stock: 86, date: '2023-02-11', }, { product: 'Ψωμί', price: '0.3€', retailPrice: '0.6€', stock: 12, date: '2000-12-12', }, ], }; export const Full = (_: any) => { return ( {data && ( <> {data.title} {data.labels && ( <> {data.labels.product} {data.labels.price} {data.labels.retailPrice} {data.labels.stock} {data.labels.date} )} {data.content && data.content.map((item, index) => ( {item.product} {item.price} {item.retailPrice} {item.stock} {item.date} ))} )}
); }; export default Full;