import React from 'react';
import { SBox } from '../../../common/s-components/layout/s-box';
import { theme } from '../../../app/theme';
import { AnimatedGradient } from '../../../common/components/animated-gradient';

type TProps = {};

export const SkeletonUpdated: React.FC<TProps> = () => {
  return (
    <SBox position="relative" overflow="hidden">
      <SBox width={128} height={16} bg={theme.colorsRgba.skeletonLight} />
      <SBox position="absolute" top={0} left={0} height="100%" flex={1}>
        <AnimatedGradient
          primaryColor={theme.colorsRgba.gradientPrimaryLight}
          secondaryColor={theme.colorsRgba.gradientPrimaryLight}
          angle={8}
          gradientWidth={160}
        />
      </SBox>
    </SBox>
  );
};
