import classNames from 'classnames' import React from 'react' import Text from 'components/common/Text' import { Tooltip } from 'components/common/Tooltip' const infoLineClasses = 'flex flex-row justify-between flex-1 mb-1 text-xs text-white' interface SummaryLineProps { children: React.ReactNode className?: string contentClassName?: string label: string tooltip?: string } export default function SummaryLine(props: SummaryLineProps) { return (
{props.tooltip ? ( {props.tooltip}} type='info' underline> {props.label} ) : ( {props.label} )} {props.children}
) }