import React from 'react'; import { Button } from '../../ui/button'; import { X, ShieldCheck, Check, XCircle } from 'lucide-react'; import { ProductLicense } from '../../../types'; interface LicenceDetailsModalProps { license: ProductLicense; onClose: () => void; onAddToCart: () => void; } function getLicenseDisplay(license: ProductLicense) { const name = license.license_type ? license.license_type.charAt(0).toUpperCase() + license.license_type.slice(1) : license.name; const price = license.price_cents != null ? license.price_cents / 100 : license.price; const features = license.terms_text ? license.terms_text.split(/\n/).filter(Boolean) : (license.features ?? []); return { name, price, features }; } export const LicenceDetailsModal: React.FC = ({ license, onClose, onAddToCart, }) => { const { name, price, features } = getLicenseDisplay(license); return (

License Agreement

{name} License

Review usage rights and restrictions.

€{price.toFixed(2)}

What You Get

    {features.map((feat, i) => (
  • {feat}
  • ))}

Restrictions

  • Do not resell or redistribute as a sample pack.
  • Content ID registration is prohibited.

This is a simplified summary. Please read the full{' '} {' '} before purchasing.

); };