2
0

📄 Add Commercial License for ee folder (#1532)

This commit is contained in:
Baptiste Arnaud
2024-05-23 10:42:23 +02:00
committed by GitHub
parent 5680829906
commit 0eacbebbbe
246 changed files with 1472 additions and 1588 deletions

View File

@ -0,0 +1,37 @@
import {
Table as ChakraTable,
TableContainer,
Tbody,
Td,
Th,
Thead,
Tr,
} from '@chakra-ui/react'
type Props = {
headers: string[]
rows: string[][]
}
export const Table = ({ headers, rows }: Props) => (
<TableContainer maxW="60rem">
<ChakraTable>
<Thead>
<Tr>
{headers.map((header, index) => (
<Th key={index}>{header}</Th>
))}
</Tr>
</Thead>
<Tbody>
{rows.map((row, index) => (
<Tr key={index}>
{row.map((cell, cellIndex) => (
<Td key={cellIndex}>{cell}</Td>
))}
</Tr>
))}
</Tbody>
</ChakraTable>
</TableContainer>
)