From f240f64bbbcaf13364d640d00876c5fd9d1be9a6 Mon Sep 17 00:00:00 2001 From: jeremyphilemon Date: Wed, 15 Jan 2025 19:44:33 +0530 Subject: [PATCH] add image block skeleton --- components/block.tsx | 2 +- components/document-skeleton.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/block.tsx b/components/block.tsx index 066e3ae6e..c1b9c5e88 100644 --- a/components/block.tsx +++ b/components/block.tsx @@ -477,7 +477,7 @@ function PureBlock({ })} > {isDocumentsFetching && !block.content ? ( - + ) : block.kind === 'code' ? ( { - return ( +import { BlockKind } from './block'; + +export const DocumentSkeleton = ({ blockKind }: { blockKind: BlockKind }) => { + return blockKind === 'image' ? ( +
+
+
+ ) : (