import React from 'react'; import { Table, Thead, Tbody, Tr, Td, Th } from '@strapi/design-system/Table'; import { Typography } from '@strapi/design-system/Typography'; const ResultTable = ({data}) => { if (!data || Object.keys(data).length === 0) { return null; } const firstRow = data[Object.keys(data)[0]]; const headers = Object.keys(firstRow); return (
|
|
{
headers.map(header => (
|
))
}
|---|---|
|
|
{
headers.map(header => (
|
))
}