import{__rest as e,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import r from"react";import l from"./TableElementsRenderer.js";var n=function(p){var i=p.children,o=p.properties,a=e(p,["children","properties"]);return r.createElement(l,{element:a,attributes:a,properties:o},i&&i.map((function(p){var i=p.type,a=p.children,c=e(p,["type","children"]);return"table-cell"!==i&&a?r.createElement(n,t({type:i},c),a):r.createElement(l,{properties:o,element:t({type:"table-cell"},c),attributes:c},a[0].text)})))};export default function(e){var t=e.bloc,l=void 0===t?{properties:{}}:t,p=l.properties.tableData,i=(void 0===p?[]:p).find((function(e){return"table"===e.type}));return i?r.createElement(r.Fragment,null,r.createElement(n,{properties:l.properties,type:i.type},i.children)):null}
//# sourceMappingURL=TableViewMode.js.map
