import type { BoxProps } from '@mui/material'; import { Box, Skeleton } from '@mui/material'; import { useWidgetConfig } from '../../providers'; import { Card } from '../Card'; import { TokenSkeleton } from '../Token'; import type { RouteCardSkeletonProps } from './types'; export const RouteCardSkeleton: React.FC = ({ variant, ...other }) => { const { subvariant } = useWidgetConfig(); const cardContent = ( {subvariant !== 'refuel' && subvariant !== 'nft' ? ( ({ borderRadius: `${theme.shape.borderRadius}px`, })} /> ) : null} ); return subvariant === 'refuel' || variant === 'cardless' ? ( cardContent ) : ( {cardContent} ); };