fomantic-ui-react
Version:
Fomantic-UI React -- A React Component Library.
53 lines (43 loc) • 2.33 kB
JavaScript
/**
* fomantic-ui-react v0.0.1-alpha.10
* (c) 2022 FireLoong <fireloong@foxmail.com>
* @license MIT
*/
import { _ as _defineProperty, a as _objectWithoutProperties } from '../_chunks/dep-9f1126c1.js';
import classNames from 'classnames';
import { createElement } from 'react';
import CommentAction from './CommentAction.js';
import CommentActions from './CommentActions.js';
import CommentAuthor from './CommentAuthor.js';
import CommentAvatar from './CommentAvatar.js';
import CommentContent from './CommentContent.js';
import CommentGroup from './CommentGroup.js';
import CommentMetadata from './CommentMetadata.js';
import CommentText from './CommentText.js';
var _excluded = ["as", "className", "children"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Comment = function Comment(_ref) {
var _ref$as = _ref.as,
as = _ref$as === void 0 ? "div" : _ref$as,
className = _ref.className,
children = _ref.children,
props = _objectWithoutProperties(_ref, _excluded);
if (!as) {
as = "div";
}
return /*#__PURE__*/createElement(as, _objectSpread({
className: classNames("comment", className)
}, props), children);
};
Comment.displayName = "Comment";
Comment.Group = CommentGroup;
Comment.Avatar = CommentAvatar;
Comment.Content = CommentContent;
Comment.Author = CommentAuthor;
Comment.Metadata = CommentMetadata;
Comment.Text = CommentText;
Comment.Actions = CommentActions;
Comment.Action = CommentAction;
export { Comment as default };
//# sourceMappingURL=Comment.js.map