import React, { useState } from 'react'; import { Button } from '../ui/button'; import { Input } from '../ui/input'; import { Stamp, Eye } from 'lucide-react'; import { useToast } from '../../context/ToastContext'; interface WatermarkSettingsModalProps { onClose: () => void; onSave: () => void; } export const WatermarkSettingsModal: React.FC = ({ onClose, onSave, }) => { const { addToast: _addToast } = useToast(); const [enabled, setEnabled] = useState(true); const [text, setText] = useState('PREVIEW - DO NOT USE'); const [opacity, setOpacity] = useState(30); const [position, setPosition] = useState(4); // 0-8 grid const positions = [ 'Top Left', 'Top Center', 'Top Right', 'Mid Left', 'Center', 'Mid Right', 'Bot Left', 'Bot Center', 'Bot Right', ]; return (
{/* Left: Controls */}

Watermark

setText(e.target.value)} />
{positions.map((_pos, i) => ( ))}
Opacity {opacity}%
setOpacity(Number(e.target.value))} className="w-full h-1 bg-kodo-steel rounded-lg appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:bg-kodo-magenta [&::-webkit-slider-thumb]:rounded-full" />
{/* Right: Preview */}
PREVIEW
{/* Dummy Content */}
{/* Watermark Overlay */} {enabled && (
{text}
)}
); };