import {__} from '@wordpress/i18n'; import cx from 'classnames'; import styles from '../SectionTable/SectionTable.module.scss'; export default function SectionTable({tableHeaders, data, blankSlate = null, rowActions = null}) { const isEmpty = data.length === 0; const tableKeys = Object.keys(tableHeaders); return (
| {tableHeaders[key]} | ))}
|---|
|
{key === 'id' ? {row[key]} : row[key]}
{columnNumber === 0 && rowActions && (
{rowActions(row)}
)}
|
))}