diff --git a/src/components/RightPanel/GradientSection.tsx b/src/components/RightPanel/GradientSection.tsx new file mode 100644 index 0000000..c5a11c2 --- /dev/null +++ b/src/components/RightPanel/GradientSection.tsx @@ -0,0 +1,48 @@ +import { useQR } from '../../context/QRContext'; +import { QR_COLORS } from '../../config/styleOptions'; + +export function GradientSection() { + const { state, dispatch } = useQR(); + const dotColor = state.qrColor === 'rainbow' ? '#7C3AED' : state.qrColor; + + return ( +
+
+

Gradient

+ +
+ + {state.gradientEnabled && ( +
+ {/* Preview */} +
+ + {/* Second color picker */} +
+ End color +
+ {QR_COLORS.filter(c => c !== 'rainbow').map(color => ( +
+
+
+ )} +
+ ); +}