diff --git a/src/common/components/ContentSkeleton/index.tsx b/src/common/components/ContentSkeleton/index.tsx new file mode 100644 index 00000000..cfd166c3 --- /dev/null +++ b/src/common/components/ContentSkeleton/index.tsx @@ -0,0 +1,10 @@ +import { Skeleton } from "@shared/components/ui/skeleton"; + +export default function ContentSkeleton ({ + className, + ...props + }: React.HTMLAttributes) { + return ( + + ) +} \ No newline at end of file diff --git a/src/workbook/components/WorkbookSkeleton/index.tsx b/src/workbook/components/WorkbookSkeleton/index.tsx index 6389f52b..d7932411 100644 --- a/src/workbook/components/WorkbookSkeleton/index.tsx +++ b/src/workbook/components/WorkbookSkeleton/index.tsx @@ -1,19 +1,28 @@ import { Skeleton } from "@shared/components/ui/skeleton"; +import ContentSkeleton from "@common/components/ContentSkeleton"; + export default function WorkbookSkeleton() { + const skeletonItems = new Array(6).fill(null); + return (
{/* Content Skeleton */} -
- - - - - - - +
+ + + {skeletonItems.map((_, index) => ( + + ))}
);