import * as React from "react"; import { cn } from "./lib/utils"; export interface PriceTagProps extends React.HTMLAttributes { price: string; originalPrice?: string; currency?: string; label?: string; sale?: boolean; className?: string; } export function PriceTag({ price, originalPrice, currency = "$", label = "ADMISSION", sale = false, className, ...props }: PriceTagProps) { return (
{/* Eyelet string punch hole */}
{/* Label */} {label} {/* Price */}
{currency} {price}
{/* Original Price / Sale Stamp */} {originalPrice ? ( {currency}{originalPrice} ) : null} {sale ? (
SALE STAMP
) : null}
); }