From 4c5be8cf8d942743398581b46ac2c76d0ff273d8 Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Wed, 24 Sep 2025 09:12:44 +0200
Subject: Initial migration

---
 src/components/Slider.tsx | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 src/components/Slider.tsx

(limited to 'src/components/Slider.tsx')

diff --git a/src/components/Slider.tsx b/src/components/Slider.tsx
new file mode 100644
index 0000000..2ee3fa1
--- /dev/null
+++ b/src/components/Slider.tsx
@@ -0,0 +1,43 @@
+import React from "react";
+import RcSlider from 'rc-slider';
+import { PLAYBACK_SLOTS } from "../config";
+import "rc-slider/assets/index.css";
+
+interface GeshemSliderProps {
+  playback?: string;
+  slider: number;
+  setSlider: React.Dispatch<React.SetStateAction<number>>;
+}
+
+export function Slider({ playback, slider, setSlider }: GeshemSliderProps) {
+  const handleStyle = {
+    height: 40,
+    width: 40,
+    border: 0,
+    marginTop: -10,
+    boxShadow: ".5px .5px 2px 1px rgba(0,0,0,.32)"
+  };
+
+  const railStyle = {
+    height: 20,
+    backgroundColor: "#3498db"
+  };
+
+  const trackStyle = {
+    display: "none"
+  };
+
+  return (
+    <div id="slider">
+      <RcSlider
+        min={0}
+        max={playback ? PLAYBACK_SLOTS : 9}
+        defaultValue={slider}
+        handleStyle={handleStyle}
+        railStyle={railStyle}
+        trackStyle={trackStyle}
+        onChange={(val) => setSlider(val as number)}
+      />
+    </div>
+  );
+}
\ No newline at end of file
-- 
cgit v1.3.1

