"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var a=f(require("react")),b=require("carbon-components-react"),c=require("./../hooks/kafkaProperties.js"),d=require("react-i18next"),e=["channelName"];function f(a){return a&&a.__esModule?a:{default:a}}function g(){return g=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},g.apply(this,arguments)}function h(a,b){if(null==a)return{};var c,d,e=j(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function j(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);return e}var k=function(f){var i=f.channelName,j=h(f,e),k=(0,d.useTranslation)(),l=k.t,m=(0,c.useKafkaProperties)(i),n=[l("key"),l("value")];return a["default"].createElement("div",{className:"channel__information"},a["default"].createElement("div",{className:"channel__label"},l("properties")),a["default"].createElement("div",{className:"channel__value"},a["default"].createElement(b.Table,g({tabIndex:0},j),a["default"].createElement(b.TableHead,null,a["default"].createElement(b.TableRow,null,n.map(function(c){return a["default"].createElement(b.TableHeader,{key:c},c)}))),a["default"].createElement(b.TableBody,null,m.map(function(c){return a["default"].createElement(b.TableRow,{key:c.key},Object.keys(c).map(function(d){return a["default"].createElement(b.TableCell,{key:d},c[d])}))})))))},l=k;exports["default"]=l;