'use client'; import { Modal } from '@/components/ui'; interface Props { isOpen: boolean; onClose: () => void; regulation: any; } export default function RegulationViewModal({ isOpen, onClose, regulation }: Props) { if (!regulation) return null; return (
{regulation.number &&
Номер: {regulation.number}
} {regulation.source &&
Источник: {regulation.source}
} {regulation.type &&
Тип: {regulation.type}
} {regulation.effectiveDate &&
Дата: {regulation.effectiveDate}
} {regulation.description &&
{regulation.description}
} {regulation.sections && regulation.sections.length > 0 && (

Разделы:

{regulation.sections.map((s: any, i: number) => (
{s.number}{s.title}
))}
)}
); }