'use client'; import React, { useState, useEffect } from 'react'; import { QRCodeSVG } from 'qrcode.react'; import { Button } from '@/components/ui/Button'; import { Input } from '@/components/ui/Input'; import { Download, RefreshCw, Smartphone, Image as ImageIcon, ScanLine } from 'lucide-react'; import Link from 'next/link'; import { cn } from '@/lib/utils'; export function MiniGenerator() { const [url, setUrl] = useState(''); const [color, setColor] = useState('#000000'); const [withLogo, setWithLogo] = useState(false); const [frame, setFrame] = useState<'none' | 'scan_me' | 'phone'>('none'); const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); // Prevent hydration mismatch if (!mounted) { return (
Unlock gradients, custom shapes & analytics →{' '} Try Pro Free