diff --git a/frontend/src/utils/loader.tsx b/frontend/src/utils/loader.tsx index 29e7c34e..0d579f85 100644 --- a/frontend/src/utils/loader.tsx +++ b/frontend/src/utils/loader.tsx @@ -1,15 +1,22 @@ import React from 'react'; -const Loader: React.FC = () => { +const SkeletonLoader = ({ count = 1 }) => { return ( -
-
-
-
-
-
+
+ {[...Array(count)].map((_, idx) => ( +
+
+
+
+
+
+
+ ))}
); }; -export default Loader; +export default SkeletonLoader; + +// calling function should be pass --- no. of sketeton cards +// eg . ----------->>>