@ozen-ui/kit
Version:
React component library
19 lines (18 loc) • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SidebarList = exports.cnSidebarList = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var useThemeProps_1 = require("../../../../hooks/useThemeProps");
var utils_1 = require("../../../../utils");
var constants_1 = require("./constants");
exports.cnSidebarList = (0, utils_1.cn)('SidebarList');
exports.SidebarList = (0, utils_1.polymorphicComponentWithRef)(function (inProps, ref) {
var props = (0, useThemeProps_1.useThemeProps)({
props: inProps,
name: 'SidebarList',
});
var _a = props.as, Tag = _a === void 0 ? constants_1.SIDEBAR_LIST_DEFAULT_TAG : _a, className = props.className, children = props.children, other = tslib_1.__rest(props, ["as", "className", "children"]);
return (react_1.default.createElement(Tag, tslib_1.__assign({}, other, { ref: ref, className: (0, exports.cnSidebarList)('', [className]) }), children));
});
exports.SidebarList.displayName = 'SidebarList';