import React from 'react'; import { Caption, Menu, Paragraph } from 'app/shared/components/text/text'; import cx from 'classnames'; export interface Props { date: string; earnings: string; fixed: string | null; isSelected: boolean; } export const DashboardChartTooltip = ({ date, earnings, fixed, isSelected }: Props) => { const fixedValueClassName = cx('u-font--clear-spacings', 'u-no-wrap', { 'u-color--primary': !isSelected, 'u-color--selected': isSelected, }); return
{date}
{earnings} Earnings {fixed !== null && ' | Forecast'} {fixed !== null &&
{fixed}
}
; };