import React from "react" import clsx from "clsx" export type LoadingProps = { className?: string barClassName?: string count?: number } export const Loading = ({ className, count = 6, barClassName, }: LoadingProps) => { const getLoadingBars = () => { const bars = [] for (let i = 0; i < count; i++) { bars.push( ) } return bars } return ( {getLoadingBars()} Loading... ) }