import {Props, TableBlock} from '../interfaces'; import { baseBlock } from '../utils'; import './index.pcss'; export function table ({ data }: Props) { const item = `
${data.content.map((row) => `
${ row.map((cell) => `
${cell}
` ).join('') }
` ).join('')}
`; return baseBlock(item); }