import { useRuleStore } from "@/stores/ruleStore"; import { Input } from "@/components/ui/input"; import { NumberInput } from "@/components/ui/number-input"; import { Checkbox } from "@/components/ui/checkbox"; import type { PaddingConfig as PaddingConfigType } from "@/types/rules"; export function PaddingConfig({ ruleId }: { ruleId: string }) { const rule = useRuleStore((s) => s.pipeline.find((r) => r.id === ruleId))?.config as PaddingConfigType | undefined; const updateRule = useRuleStore((s) => s.updateRule); if (!rule) return null; const update = (changes: Partial) => updateRule(ruleId, changes); return (
); }