From 93dfe2be64e8658839bcfe5356adf35f8cde7075 Mon Sep 17 00:00:00 2001
From: Nicolas James <Eele1Ephe7uZahRie@tutanota.com>
Date: Thu, 13 Feb 2025 18:04:18 +1100
Subject: initial commit

---
 src/web/components/darken/Darken.jsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 src/web/components/darken/Darken.jsx

(limited to 'src/web/components/darken/Darken.jsx')

diff --git a/src/web/components/darken/Darken.jsx b/src/web/components/darken/Darken.jsx
new file mode 100644
index 0000000..7f46365
--- /dev/null
+++ b/src/web/components/darken/Darken.jsx
@@ -0,0 +1,13 @@
+import React from "react";
+import styles from "./Darken.css";
+
+export default function Darken({active, className, ...others}) {
+
+    return (
+        <div 
+            className={styles.darken
+                + (active ? " " + styles.darkenActive : "")
+                + (className ? " " + className : "")}
+            {...others} />
+    );
+}
\ No newline at end of file
-- 
cgit v1.2.3

