UNPKG

@open-tender/ui

Version:

A component library for use with the Open Tender web app

15 lines (14 loc) 624 B
import { OrderItem } from '@open-tender/types'; import React, { ReactNode } from 'react'; import { ScreenConfig } from '../types'; export interface PointsRewardProps { config: ScreenConfig; successMessageConfig: ScreenConfig; item: OrderItem; itemPointsApplied: number; pointsRemaining: number; renderQuantity: (quantity: number, incrementDisabled: boolean) => ReactNode; apiUrl: string; } declare const PointsReward: ({ config, successMessageConfig, item, itemPointsApplied, pointsRemaining, renderQuantity, apiUrl }: PointsRewardProps) => React.JSX.Element | null; export default PointsReward;