UNPKG

@open-tender/ui

Version:

A component library for use with the Open Tender web app

13 lines (12 loc) 486 B
import { Discount, Discounts } from '@open-tender/types'; import React, { ReactNode } from 'react'; import { ScreenConfig } from '../types'; export interface RewardsProps { config: ScreenConfig; title: string; subtitle?: string; rewards: Discounts; renderReward: (reward: Discount, index: number, isLast: boolean) => ReactNode; } declare const Rewards: ({ config, title, subtitle, rewards, renderReward }: RewardsProps) => React.JSX.Element; export default Rewards;