@open-tender/store
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API
13 lines (12 loc) • 523 B
TypeScript
import { Discounts } from '@open-tender/types';
import { AppliedProps, RewardProps, RewardsProps } from '@open-tender/ui';
import React, { ReactNode } from 'react';
declare const Rewards: ({ title, subtitle, rewards, children, RewardView, AppliedView }: {
title: string;
subtitle?: string;
rewards: Discounts;
children: (props: RewardsProps) => ReactNode;
RewardView: (props: RewardProps) => ReactNode;
AppliedView: (props: AppliedProps) => ReactNode;
}) => React.ReactNode;
export default Rewards;