/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { Metric } from "../models"; import MetricsCardGroup from "../components/MetricsCardGroup"; import ShareButton from "./ShareButton"; type Props = { id: string; title: string; metrics: Array; metricPerRow: number; significantDigitLabels: boolean; metricsCenterAlign: boolean; }; const MetricsWidget = ({ id, title, metrics, metricPerRow, significantDigitLabels, metricsCenterAlign, }: Props) => { return (
{title && (

{title}

)} {metrics.length ? (
) : ( "" )}
); }; export default MetricsWidget;