UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

41 lines 2.67 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import React from 'react'; import { Button, ContentItem, Icon } from '@momentum-ui/react-collaboration'; var ChatContentItem = /** @class */ (function (_super) { __extends(ChatContentItem, _super); function ChatContentItem() { return _super !== null && _super.apply(this, arguments) || this; } ChatContentItem.prototype.render = function () { var actionNode = (React.createElement("div", null, React.createElement(Button, { ariaLabel: "Open in folder", style: { backgroundColor: 'black' }, circle: true, size: 32 }, React.createElement(Icon, { name: "open-in-folder_14", color: "white" })), React.createElement(Button, { ariaLabel: "Download", style: { backgroundColor: 'black' }, circle: true, size: 32 }, React.createElement(Icon, { name: "icon-arrow-tail-down_14", color: "white" })))); var handleClick = function () { alert('Image onClick'); }; return (React.createElement("div", { className: "columns large" }, React.createElement("div", { className: "docs-example docs-example--spacing" }, React.createElement(ContentItem, { actionNode: actionNode, aspect: "sixteenNine", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", fileSize: "24 KB", onClick: handleClick, type: "chat", title: "Screen Shot 208-11-07 at 10.30.02 AM.png" })), React.createElement("div", { className: "docs-example docs-example--spacing" }, React.createElement(ContentItem, { aspect: "sixteenNine", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", fileSize: "24 KB", isProtected: true, onClick: handleClick, title: "Nice seating.png", type: "chat" })))); }; return ChatContentItem; }(React.PureComponent)); export default ChatContentItem; //# sourceMappingURL=Default.js.map