import React from "react";
import { TextBox } from "@/components/ui/TextBox";

interface AmountSwappedProps {
  amountSwappedDisplay: string | number;
}

const AmountSwapped: React.FC<AmountSwappedProps> = ({ amountSwappedDisplay }) => {
  return (
    <div className="group">
      <div className="relative">
        <TextBox
          label="Amount (Currency Swapped)"
          placeholder="Auto-calculated"
          type="text"
          className="text-sm bg-gradient-to-r from-slate-50 to-slate-100/50 border-slate-300/50 font-semibold text-slate-700"
          value={amountSwappedDisplay}
          readOnly
          disabled
        />
        <div className="absolute inset-0 pointer-events-none rounded-lg bg-gradient-to-br from-[#428B4D]/5 to-transparent"></div>
      </div>
    </div>
  );
};

export default AmountSwapped;
