@tduniec/backstage-plugin-time-saver
Version:
This plugin provides an implementation of charts and statistics related to your time savings that are coming from usage of your templates. Plugins is built from frontend and backend part. This part of plugin `frontend` is responsible of providing views wi
50 lines (47 loc) • 1.16 kB
JavaScript
import React__default from 'react';
import Avatar from '@material-ui/core/Avatar';
import { getRandomColor } from '../utils.esm.js';
import { useTheme } from '@material-ui/core';
const Gauge = ({ number, heading }) => {
const theme = useTheme();
return /* @__PURE__ */ React__default.createElement(
"div",
{
style: {
textAlign: "center",
display: "flex",
flexDirection: "column",
alignItems: "center"
}
},
/* @__PURE__ */ React__default.createElement(
Avatar,
{
style: {
width: 120,
height: 120,
fontSize: 36,
backgroundColor: getRandomColor(),
boxShadow: "0px 4px 8px rgba(0, 0, 0, 0.1)",
color: "#fff",
marginBottom: "8px",
border: "3px solid #005052"
}
},
number
),
/* @__PURE__ */ React__default.createElement(
"div",
{
style: {
fontSize: "16px",
fontWeight: "bold",
color: theme.palette.text.primary
}
},
heading
)
);
};
export { Gauge as default };
//# sourceMappingURL=Gauge.esm.js.map