import * as React from 'react'; import classNames from 'classnames'; import { TableSection } from '../../typings/story-section'; import Markdown from '../../Markdown'; import styles from './styles.scss'; export const table: (a: TableSection) => React.ReactNode = ({ rows, headerTitles, transparentHeader, }) => ( {headerTitles && ( {headerTitles.map((title, i) => ( ))} )} {rows.map((row, i) => ( {row.map((cell, j) => ( ))} ))}
{title}
{typeof cell === 'string' ? ( ) : ( cell )}
);