import { HStack, Text, VStack } from "native-base"; import React from "react"; import Svg, { Path } from "react-native-svg"; import Countdown from "../../Countdown"; import SeparatorDashed from "../../SeparatorDashed"; export interface VoucherDetailCardProps { labelPromoCode: string; valuePromoCode?: string; labelValidUntil: string; labelEndsIn: string; labelMinimumTxn: string; valueMinimumTxn: string; isBelow24hrLeft: boolean; expiredTanggal: string; expiredMillis: number; } export const VoucherDetailCard: React.FC = (props) => { const { labelPromoCode, valuePromoCode, labelValidUntil, labelEndsIn, labelMinimumTxn, valueMinimumTxn, isBelow24hrLeft, expiredTanggal, expiredMillis, } = props; return ( {/* Top Section */} {labelPromoCode} {valuePromoCode} {/* Separator Section */} {/* Action Section */} {isBelow24hrLeft ? labelEndsIn : labelValidUntil} {isBelow24hrLeft ? ( ) : ( {expiredTanggal} )} {labelMinimumTxn} {valueMinimumTxn} ); }; export default VoucherDetailCard;