'use client'; import React from 'react'; import { motion } from 'framer-motion'; import { Sparkles, AlertCircle, Loader2 } from 'lucide-react'; interface BottleSkeletonCardProps { name?: string; imageUrl?: string; processingStatus: 'pending' | 'analyzing' | 'error'; onClick?: () => void; } export default function BottleSkeletonCard({ name, imageUrl, processingStatus, onClick }: BottleSkeletonCardProps) { const isError = processingStatus === 'error'; const isPending = processingStatus === 'pending'; const isAnalyzing = processingStatus === 'analyzing'; return ( {/* Image */}
{imageUrl ? ( Bottle preview ) : (
)} {/* Processing Overlay */}
{isError ? ( <> Fehler ) : ( <> {isPending ? ( ) : ( )} {isPending ? 'Warten...' : 'KI analysiert...'} )}
{/* Status Badge */}
{isError ? 'Fehler' : isAnalyzing ? '✨ Analyse' : 'Warte'}
{/* Info */}
{/* Skeleton Name */}
{/* Skeleton Details */}
); }