import React, { FunctionComponent } from 'react'; import { ColorTokens } from '../../foundation/Colors'; import { Container } from './BouncedLoading.styled'; export type BouncedLoadingProps = { colorToken?: ColorTokens; highlightColorToken?: ColorTokens; }; export const BouncedLoading: FunctionComponent = ({ colorToken = 'white400', highlightColorToken = 'primary400', }) => { const bouncingElements = React.useMemo( () => Array.from({ length: 3 }, (_, index) => ( )), [], ); return ( {bouncingElements} ); };