'use client' import React from 'react' import type { VocabWorksheetHook } from '../types' import { defaultOcrPrompts } from '../constants' export function OcrSettingsPanel({ h }: { h: VocabWorksheetHook }) { const { isDark, glassCard, glassInput } = h return (

OCR-Filter Einstellungen

Diese Einstellungen helfen, unerwuenschte Elemente wie Seitenzahlen, Kapitelnamen oder Kopfzeilen aus dem OCR-Ergebnis zu filtern.

{/* Checkboxes */}
{/* Patterns */}
h.saveOcrPrompts({ ...h.ocrPrompts, headerPatterns: e.target.value.split(',').map(s => s.trim()).filter(Boolean) })} placeholder="Unit, Chapter, Lesson..." className={`w-full px-4 py-2 rounded-xl border ${glassInput} focus:outline-none focus:ring-2 focus:ring-purple-500`} />
h.saveOcrPrompts({ ...h.ocrPrompts, footerPatterns: e.target.value.split(',').map(s => s.trim()).filter(Boolean) })} placeholder="zweihundert, Page, Seite..." className={`w-full px-4 py-2 rounded-xl border ${glassInput} focus:outline-none focus:ring-2 focus:ring-purple-500`} />