'use client' import { ReactNode } from 'react' import Link from 'next/link' import { usePathname } from 'next/navigation' import { VendorComplianceProvider } from '@/lib/sdk/vendor-compliance' interface NavItem { href: string label: string icon: ReactNode } const navItems: NavItem[] = [ { href: '/sdk/vendor-compliance', label: 'Übersicht', icon: ( ), }, { href: '/sdk/vendor-compliance/processing-activities', label: 'Verarbeitungsverzeichnis', icon: ( ), }, { href: '/sdk/vendor-compliance/vendors', label: 'Vendor Register', icon: ( ), }, { href: '/sdk/vendor-compliance/contracts', label: 'Verträge', icon: ( ), }, { href: '/sdk/vendor-compliance/risks', label: 'Risiken', icon: ( ), }, { href: '/sdk/vendor-compliance/controls', label: 'Controls', icon: ( ), }, { href: '/sdk/vendor-compliance/reports', label: 'Berichte', icon: ( ), }, ] export default function VendorComplianceLayout({ children, }: { children: ReactNode }) { const pathname = usePathname() const isActive = (href: string) => { if (href === '/sdk/vendor-compliance') { return pathname === href } return pathname.startsWith(href) } return (
{/* Sidebar */} {/* Main content */}
{children}
) }