2021-05-18 15:51:36 +00:00
|
|
|
import React from "react"
|
|
|
|
import Style from "./SummaryLabels.module.css"
|
|
|
|
import classNames from "classnames"
|
|
|
|
|
|
|
|
|
2021-05-20 10:16:01 +00:00
|
|
|
export default function SummaryLabels({
|
|
|
|
children,
|
|
|
|
upperLabel,
|
|
|
|
upperValue,
|
|
|
|
lowerLabel,
|
|
|
|
lowerValue,
|
|
|
|
className,
|
|
|
|
...props
|
|
|
|
}) {
|
2021-05-18 15:51:36 +00:00
|
|
|
return (
|
|
|
|
<div className={classNames(Style.SummaryLabels, className)} {...props}>
|
|
|
|
<div className={classNames(Style.Label, Style.Upper)}>
|
|
|
|
{upperLabel}
|
|
|
|
</div>
|
|
|
|
<div className={classNames(Style.Value, Style.Upper)}>
|
|
|
|
{upperValue}
|
|
|
|
</div>
|
|
|
|
<div className={classNames(Style.Label, Style.Lower)}>
|
|
|
|
{lowerLabel}
|
|
|
|
</div>
|
|
|
|
<div className={classNames(Style.Value, Style.Lower)}>
|
|
|
|
{lowerValue}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|