UNPKG

@skbkontur/db-viewer-ui

Version:

Database Viewer with custom configuration

9 lines 920 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ObjectKeys = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const edi_ui_1 = require("@skbkontur/edi-ui"); const react_stack_layout_1 = require("@skbkontur/react-stack-layout"); const ObjectKeys = ({ keys }) => ((0, jsx_runtime_1.jsx)(react_stack_layout_1.ColumnStack, { block: true, gap: 2, children: keys.map(({ name, value }) => ((0, jsx_runtime_1.jsx)(react_stack_layout_1.Fit, { children: (0, jsx_runtime_1.jsxs)(react_stack_layout_1.RowStack, { gap: 2, children: [(0, jsx_runtime_1.jsxs)(react_stack_layout_1.Fit, { style: { minWidth: 140 }, children: [name, ":"] }), (0, jsx_runtime_1.jsx)(react_stack_layout_1.Fit, { children: (0, jsx_runtime_1.jsx)(edi_ui_1.AllowCopyToClipboard, { "data-tid": name, children: value }) })] }) }, name))) })); exports.ObjectKeys = ObjectKeys; //# sourceMappingURL=ObjectKeys.js.map