setExpandedCat(isExpanded ? null : cat)}
style={{ padding: '8px 14px' }}
>
{allForbidden ? '전체 불가' : allAllowed ? '전체 가능' : '항목별 상이'}
{isExpanded ? '▾' : '▸'}
{catRules.map((rule, i) => (
{rule.item}
))}
{catRules.some((r) => r.condition && r.zones[zoneIdx] !== 'forbidden') && (
{catRules
.filter((r) => r.condition && r.zones[zoneIdx] !== 'forbidden')
.map((r, i) => (
💡 {r.item}: {r.condition}
))}
)}