From 44a1c5b7e62e83af4d670e011f5998b9b8aedfef Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Mon, 29 Aug 2022 10:24:51 +0300
Subject: Update all .tsx files and remove unused

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

(limited to 'src/Slider.tsx')

diff --git a/src/Slider.tsx b/src/Slider.tsx
new file mode 100644
index 0000000..9e86f66
--- /dev/null
+++ b/src/Slider.tsx
@@ -0,0 +1,37 @@
+import React from "react";
+import RcSlider from "rc-slider";
+
+function Slider(props) {
+  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
+        mix={0}
+        max={props.playback ? 143 : 9}
+        defaultValue={props.slider}
+        handleStyle={handleStyle}
+        railStyle={railStyle}
+        trackStyle={trackStyle}
+        onChange={val => props.setSlider(val)}
+      />
+    </div>
+  );
+}
+
+export default Slider;
-- 
cgit v1.3.1

