diff --git a/src/components/CameraCapture.tsx b/src/components/CameraCapture.tsx index 23db0ac..a7ec828 100644 --- a/src/components/CameraCapture.tsx +++ b/src/components/CameraCapture.tsx @@ -1,8 +1,16 @@ 'use client'; import React, { useRef, useState } from 'react'; -import { ChevronRight } from 'lucide-react'; +import { Camera, Upload, CheckCircle2, AlertCircle, Sparkles, ExternalLink, ChevronRight } from 'lucide-react'; +import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'; import { useRouter, useSearchParams } from 'next/navigation'; +import { analyzeBottle } from '@/services/analyze-bottle'; +import { saveBottle } from '@/services/save-bottle'; +import { BottleMetadata } from '@/types/whisky'; +import { savePendingBottle } from '@/lib/offline-db'; +import { v4 as uuidv4 } from 'uuid'; +import { findMatchingBottle } from '@/services/find-matching-bottle'; +import Link from 'next/link'; interface CameraCaptureProps { onImageCaptured?: (base64Image: string) => void;