import { BackgroundBoxProps } from './BackgroundBoxProps';
import { ThatDayInfo } from './entity';
import { Props } from './Props';

export interface ThatDayInfoColContentProps {
  /** 标题 */
  title: string;
  /** 今日值 */
  todayValue?: number;
  /** 较昨日值 */
  yesterdayValue?: number;
  /** 今日值是否百分数 */
  percent?: boolean;
  /** 较昨日值是否百分数 */
  notPercent?: boolean;
}

export type ThatDayInfoProps =
  Pick<BackgroundBoxProps, 'height' | 'reloadData'>
  & Props<ThatDayInfo>