diff --git a/src/atoms/Table/TableBody.js b/src/atoms/Table/TableBody.js
index 3f5282dd..534e6014 100644
--- a/src/atoms/Table/TableBody.js
+++ b/src/atoms/Table/TableBody.js
@@ -1,11 +1,14 @@
// @flow
import React from 'react';
+import { AsyncContent } from '../../molecules/AsyncContent';
import { Grid } from '../Grid';
import { createStyledTag, createTheme } from '../../utils';
type TableBodyProps = {
children?: React$Node,
+ loading?: boolean,
+ data?: any[],
};
const name = 'tableBody';
@@ -27,9 +30,23 @@ const TableBodyTag = createStyledTag(name, (props: *) => ({
function TableBody({
children,
+ data,
+ loading,
...rest
}: TableBodyProps) {
- return { children };
+ return (
+
+
+ {
+ Array.isArray(data) && typeof children === 'function'
+ ?
+ React.Children.toArray(data.map(children))
+ :
+ children
+ }
+
+
+ );
}
export { TableBody, theme };