import React, { ComponentType } from 'react'; import clsx from 'clsx'; import { Skin } from 'app/components/ui'; import styles from './componentLoader.scss'; // TODO: add mode to not show loader until first ~150ms interface Props { skin?: Skin; className?: string; } const ComponentLoader: ComponentType = ({ skin = 'dark', className }) => (
{new Array(5).fill(0).map((_, index) => (
))}
); export default ComponentLoader;