From 4572f972e982b8a6ef2f4562c978c843f61d4dbd Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:17:16 +0330 Subject: [PATCH] Import source: src/components/RightPanel/GradientSection Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- src/components/RightPanel/GradientSection.tsx | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/components/RightPanel/GradientSection.tsx 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 => ( +
+
+
+ )} +
+ ); +}