'use client' import type { Rule } from '../types' interface RulesTabProps { rules: Rule[] } export function RulesTab({ rules }: RulesTabProps) { return (

Filterregeln

{rules.map((rule) => (
{rule.name}
Wenn: {rule.conditions[0]?.field} {rule.conditions[0]?.operator} "{rule.conditions[0]?.value}"
{rule.action_type}
))} {rules.length === 0 && (
Keine Regeln konfiguriert
)}
) }