cal.pub0.org/packages/features/bookings/components/event-meta/getPriceIcon.ts

8 lines
295 B
TypeScript
Raw Normal View History

import { CreditCard } from "lucide-react";
import { SatSymbol } from "@calcom/ui/components/icon/SatSymbol";
export function getPriceIcon(currency: string): React.FC<{ className: string }> | string {
return currency !== "BTC" ? CreditCard : (SatSymbol as React.FC<{ className: string }>);
}