"use client"; import { AnimatePresence, motion } from "framer-motion"; import { Check, Copy, Link2 } from "lucide-react"; import { CurrencyIcon } from "@/components/converter/currency-icon"; import { Button } from "@/components/ui/button"; import type { RateAsset } from "@/lib/rates"; interface ConverterCardConvertedValueProps { shouldReduceMotion: boolean; fromAsset?: RateAsset; toAsset?: RateAsset; pairTransitionKey: string; convertedDisplay: string; forAmountDisplay: string; isShareLinkCopied: boolean; isCopied: boolean; canCopyConvertedValue: boolean; onCopyShareLink: () => void; onCopyConvertedValue: () => void; } export function ConverterCardConvertedValue({ shouldReduceMotion, fromAsset, toAsset, pairTransitionKey, convertedDisplay, forAmountDisplay, isShareLinkCopied, isCopied, canCopyConvertedValue, onCopyShareLink, onCopyConvertedValue, }: ConverterCardConvertedValueProps) { return (

Converted value

{fromAsset && toAsset ? ( {fromAsset.code} to {toAsset.code} ) : null}

{convertedDisplay}

{fromAsset ? (

for {forAmountDisplay} {fromAsset.code}

) : null}
); }