UNPKG

@hypernetlabs/web-ui

Version:
24 lines 1.53 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GovernanceValueWithTitle = void 0; const core_1 = require("@material-ui/core"); const react_1 = __importDefault(require("react")); const GovernanceValueWithTitle_style_1 = require("../../components/GovernanceValueWithTitle/GovernanceValueWithTitle.style"); const GovernanceValueWithTitle = (props) => { const { title, value, topRightContent, bottomRightContent } = props; const classes = (0, GovernanceValueWithTitle_style_1.useStyles)({}); return (react_1.default.createElement(core_1.Box, { className: classes.wrapper }, react_1.default.createElement(core_1.Box, { className: classes.rowWrapper }, react_1.default.createElement(core_1.Typography, { variant: "body2", color: "textPrimary", className: classes.title }, title), topRightContent), react_1.default.createElement(core_1.Box, { className: classes.rowWrapper }, react_1.default.createElement(core_1.Typography, { variant: "body1", color: "textPrimary", className: classes.value }, value), bottomRightContent && (react_1.default.createElement(core_1.Box, { className: classes.rightContent }, " ", bottomRightContent))))); }; exports.GovernanceValueWithTitle = GovernanceValueWithTitle; //# sourceMappingURL=GovernanceValueWithTitle.js.map