From 0b36b15dfa0557a0fe893f58f6a29f88d6a7b50f Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:14:16 +0330 Subject: [PATCH] Import source: cshare-app/src/components/SkeletonLoader Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- cshare-app/src/components/SkeletonLoader.jsx | 115 +++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 cshare-app/src/components/SkeletonLoader.jsx diff --git a/cshare-app/src/components/SkeletonLoader.jsx b/cshare-app/src/components/SkeletonLoader.jsx new file mode 100644 index 0000000..9565e10 --- /dev/null +++ b/cshare-app/src/components/SkeletonLoader.jsx @@ -0,0 +1,115 @@ +export function Skeleton({ width, height, radius = 'var(--radius-sm)', style = {} }) { + return ( +
+ ); +} + +export function SkeletonCard({ lines = 3, hasAvatar = false }) { + return ( +
+ {hasAvatar && ( +
+ +
+ + +
+
+ )} + {Array.from({ length: lines }).map((_, i) => ( + + ))} +
+ ); +} + +export function SkeletonStatCards({ count = 3 }) { + return ( +
+ {Array.from({ length: count }).map((_, i) => ( +
+
+ + +
+ + +
+ ))} +
+ ); +} + +export function SkeletonFileRows({ count = 5 }) { + return ( +
+
+ {['File', 'Size', 'Expiry', 'Views', 'DL', 'Actions'].map((h) => ( + + ))} +
+ {Array.from({ length: count }).map((_, i) => ( +
+
+ +
+ + +
+
+ + + + +
+ + + +
+
+ ))} +
+ ); +}