'use client' import React from 'react' import type { DisplayModule } from '../_hooks/useModules' export function ModuleCard({ module, isActive, onActivate, onDeactivate, onConfigure, }: { module: DisplayModule isActive: boolean onActivate: () => void onDeactivate: () => void onConfigure: () => void }) { const categoryColors = { gdpr: 'bg-blue-100 text-blue-700', 'ai-act': 'bg-purple-100 text-purple-700', iso27001: 'bg-green-100 text-green-700', nis2: 'bg-orange-100 text-orange-700', custom: 'bg-gray-100 text-gray-700', } const statusColors = { active: 'bg-green-100 text-green-700', inactive: 'bg-gray-100 text-gray-500', pending: 'bg-yellow-100 text-yellow-700', } return (
{module.description}
{module.regulations.length > 0 && (