feat: skeleton

This commit is contained in:
TrèsAbhi committed 2026-01-16 20:37:11 -06:00
1 parent f7c6fdd861
commit b50c47b744
11 files changed
+88 -28

No files matched your search

@@ -1,6 +1,6 @@
import { times } from "lodash-es";
import { useEffect, useRef, useState, type ReactNode } from "react";
import type { SkeletonProps } from "../../types/SkeletonProps";
import type { PropsWithSkeleton } from "../../types/propsWithSkeleton";
import "./index.css";
export interface IncrementalLoaderProps<Props extends { key: string }> {
@@ -10,7 +10,7 @@ export interface IncrementalLoaderProps<Props extends { key: string }> {
skeleton?: boolean;
data: Props[];
Component: (props: SkeletonProps<Omit<Props, "key">>) => ReactNode;
Component: (props: PropsWithSkeleton<Omit<Props, "key">>) => ReactNode;
}
export function IncrementalLoader<Props extends { key: string }>({