import React from 'react'; import StatusIndicator from "@/components/statusIndicator"; // Ensure this path matches your file structure interface AlertComponentProps { logoUrl: string; alertText: string; status: string; amount: number; setAmount: (amount: number) => void; } const AlertComponent: React.FC = ({ logoUrl, alertText, status, amount, setAmount }) => { return (
{alertText}
{alertText}
setAmount(Number(e.target.value))} className="py-2 pl-3 pr-3 text-sm leading-6 text-right text-black bg-white rounded border-black border-solid border-[0.5px] w-full max-w-xs" // Adjusted styles for input style={{ textAlign: 'left' }} // Ensure text aligns left within the input />
); }; export default AlertComponent;