// frontend/components/automation/RulesView.tsx — auto.jsx RulesView 이식 "use client"; import { Icon } from "@/components/Icon"; import type { RuleOut } from "@/lib/types"; import { AU_CAT, AU_TONE, Flow } from "./Flow"; export function RulesView({ rules, toggle }: { rules: RuleOut[]; toggle: (id: string) => void }) { const activeN = rules.filter((r) => r.on).length; return (