'use client' import { useState } from 'react' import { ExternalLink, Maximize2, Minimize2, RefreshCw, Search, BookOpen, ArrowRight } from 'lucide-react' // Quick links to compliance documentation sections const quickLinks = [ { name: 'AI Compliance SDK', path: 'services/ai-compliance-sdk/', icon: '🔒' }, { name: 'Architektur', path: 'services/ai-compliance-sdk/ARCHITECTURE/', icon: '🏗️' }, { name: 'Developer Guide', path: 'services/ai-compliance-sdk/DEVELOPER/', icon: '👩‍💻' }, { name: 'Auditor Doku', path: 'services/ai-compliance-sdk/AUDITOR_DOCUMENTATION/', icon: '📋' }, { name: 'SBOM', path: 'services/ai-compliance-sdk/SBOM/', icon: '📦' }, { name: 'CI/CD Pipeline', path: 'development/ci-cd-pipeline/', icon: '🚀' }, ] export default function DocsPage() { const [isFullscreen, setIsFullscreen] = useState(false) const [isLoading, setIsLoading] = useState(true) const [currentPath, setCurrentPath] = useState('') const getDocsUrl = () => { if (typeof window !== 'undefined') { const protocol = window.location.protocol const hostname = window.location.hostname const port = window.location.port return `${protocol}//${hostname}${port ? ':' + port : ''}/docs` } return '/docs' } const docsUrl = getDocsUrl() const handleIframeLoad = () => { setIsLoading(false) } const navigateTo = (path: string) => { setCurrentPath(path) setIsLoading(true) } const toggleFullscreen = () => { setIsFullscreen(!isFullscreen) } const openInNewTab = () => { window.open(`${docsUrl}/${currentPath}`, '_blank') } const refreshDocs = () => { setIsLoading(true) setCurrentPath(currentPath + '?refresh=' + Date.now()) setTimeout(() => setCurrentPath(currentPath), 100) } if (isFullscreen) { return (
BreakPilot Compliance Dokumentation