From edccb1e8d19bc45edf3fb4e4346979ec51fa7375 Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 24 Aug 2026 01:42:44 -0400 Subject: [PATCH] feat: add StickerWallThumbnail component for clickable sticker wall previews Co-authored-by: Cursor --- .../src/components/StickerWallThumbnail.jsx | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 frontend/src/components/StickerWallThumbnail.jsx diff --git a/frontend/src/components/StickerWallThumbnail.jsx b/frontend/src/components/StickerWallThumbnail.jsx new file mode 100644 index 0000000..7c2cacd --- /dev/null +++ b/frontend/src/components/StickerWallThumbnail.jsx @@ -0,0 +1,39 @@ +import React from 'react'; + +function StickerWallThumbnail({ imageUrl, loading, error, onClick }) { + const baseClasses = 'rounded-lg border border-gray-300 dark:border-gray-600 overflow-hidden flex items-center justify-center bg-gray-100 dark:bg-gray-700/50 flex-shrink-0'; + + if (loading) { + return ( +
+ + + + +
+ ); + } + + if (error || !imageUrl) { + return ( +
+ No stickers +
+ ); + } + + return ( + + ); +} + +export default StickerWallThumbnail;