dashpresshq/dashpress

View on GitHub
src/frontend/components/app/skeleton/list/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Skeleton } from "@/components/ui/skeleton";

export interface IProps {
  count: number;
}

export function ListSkeleton({ count }: IProps) {
  return (
    <div data-testid="list-skeleton">
      {Array.from({ length: count }, (_, k) => k + 1).map((key) => (
        <Skeleton className="mb-0.5 h-10" key={key} />
      ))}
    </div>
  );
}