import React from "react" import Style from "./Summary.module.css" import classNames from "classnames" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" /** * A long line displaying the summary of a certain entity, such as a repository or an user. * * @param icon - The icon of the summary. * @param title - The title of the summary. * @param subtitle - The subtitle of the summary. * @param onClick - A function to call when the summary is clicked. * @param upperLabel - The label for the upper value. * @param upperValue - The upper value. * @param lowerLabel - The label for the lower value. * @param lowerValue - The lower value. * @param buttons - Buttons to add to the right of the summary. * @param className - Additional class(es) to add to the summary. * @param props - Additional props to pass to the summary. * @returns {JSX.Element} * @constructor */ export default function Summary( { icon, title, subtitle, onClick, upperLabel, upperValue, lowerLabel, lowerValue, buttons, className, ...props }, ) { return (
{title}
{subtitle}
{upperLabel}
{upperValue}
{lowerLabel}
{lowerValue}
{buttons}
) }