import React, { Fragment } from 'react'; import { Dialog, Transition } from '@headlessui/react'; import { X, ShieldCheck, FileText } from 'lucide-react'; import { USER_AGREEMENT_TEXT, KVKK_TEXT } from '../legal_texts'; interface LegalModalProps { isOpen: boolean; onClose: () => void; type?: 'terms' | 'kvkk' | null; title?: string; content?: string; } export const LegalModal: React.FC = ({ isOpen, onClose, type, title: customTitle, content: customContent }) => { const title = customTitle || (type === 'terms' ? 'User Agreement & IP Rights' : type === 'kvkk' ? 'KVKK & Privacy Policy' : 'Information'); const content = customContent || (type === 'terms' ? USER_AGREEMENT_TEXT : type === 'kvkk' ? KVKK_TEXT : ''); const icon = type === 'terms' ? : ; return (
{icon} {title}
{content}
); };