(which: 'from' | 'to', v: string)
| 726 | }) |
| 727 | |
| 728 | const setGradColor = (which: 'from' | 'to', v: string) => |
| 729 | setConfigs((prev) => { |
| 730 | const next = structuredClone(prev) |
| 731 | next[markId].gradient[which] = v |
| 732 | return next |
| 733 | }) |
| 734 | |
| 735 | const setGradPair = (key: 'cx' | 'cy' | 'r', side: 'rest' | 'hover', v: number) => |
| 736 | setConfigs((prev) => { |