UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

11 lines (10 loc) 941 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TabContent = TabContent; const jsx_runtime_1 = require("react/jsx-runtime"); const Label_1 = require("../Label/index.js"); const constants_1 = require("./constants.js"); function TabContent({ icon, children, value, counter, label }) { return ((0, jsx_runtime_1.jsxs)("div", { className: (0, constants_1.bTab)('content'), children: [icon && (0, jsx_runtime_1.jsx)("div", { className: (0, constants_1.bTab)('icon'), children: icon }), (0, jsx_runtime_1.jsx)("div", { className: (0, constants_1.bTab)('title'), children: children || value }), counter !== undefined && (0, jsx_runtime_1.jsx)("div", { className: (0, constants_1.bTab)('counter'), children: counter }), label && ((0, jsx_runtime_1.jsx)(Label_1.Label, { className: (0, constants_1.bTab)('label'), theme: label.theme, children: label.content }))] })); } //# sourceMappingURL=TabContent.js.map