import React from 'react';
import { SBox } from '../../../common/s-components/layout/s-box';
import { AnimatedGradient } from '../../../common/components/animated-gradient';
import { SRow } from '../../../common/s-components/layout/s-row';
import { CARD_HEIGHT, CARD_WIDTH } from '../../constants';

type TProps = {};

export const Skeleton: React.FC<TProps> = () => {
  return (
    <SBox position="relative" mt={54}>
      <SRow>
        <SBox
          height={CARD_HEIGHT}
          width={CARD_WIDTH}
          mx={16}
          bg="eastBay"
          borderRadius={8}
        />
        <SBox
          height={CARD_HEIGHT}
          width={CARD_WIDTH}
          bg="eastBay"
          borderRadius={8}
        />
      </SRow>
      <SBox position="absolute" top={0} left={0} height="100%" flex={1}>
        <AnimatedGradient angle={8} gradientWidth={160} />
      </SBox>
    </SBox>
  );
};
