@blocklet/payment-react
Version:
Reusable react components for payment kit v2
18 lines (17 loc) • 639 B
TypeScript
/**
* LoadingAmount Component
*
* Displays amount with skeleton loading state during currency switch.
* Only shows skeleton when isRateLoading is true (currency switch scenario).
*/
import type { SxProps, Theme } from '@mui/material';
export interface LoadingAmountProps {
value: string;
loading?: boolean;
skeletonWidth?: number;
height?: number;
sx?: SxProps<Theme>;
animateValueChange?: boolean;
transitionDuration?: number;
}
export default function LoadingAmount({ value, loading, skeletonWidth, height, sx, animateValueChange, transitionDuration, }: LoadingAmountProps): import("react").JSX.Element;