From 0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 Mon Sep 17 00:00:00 2001
From: Ryan Schanzenbacher <ryan@rschanz.org>
Date: Mon, 3 Aug 2026 01:22:44 -0400
Subject: Initial commit: combined darwin + guix-linux home-manager flake

Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc
nix-home-manager flake (linux). See README.md/MIGRATION.md.
---
 .../simple-bar-source/lib/components/side-icon.jsx | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100755 users/ryan/modules/simple-bar/simple-bar-source/lib/components/side-icon.jsx

(limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/components/side-icon.jsx')

diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/components/side-icon.jsx b/users/ryan/modules/simple-bar/simple-bar-source/lib/components/side-icon.jsx
new file mode 100755
index 0000000..893241d
--- /dev/null
+++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/components/side-icon.jsx
@@ -0,0 +1,32 @@
+import * as Uebersicht from "uebersicht";
+import * as Icons from "./icons/icons.jsx";
+import { SuspenseIcon } from "./icons/icon.jsx";
+import { useSimpleBarContext } from "./simple-bar-context.jsx";
+
+const { React } = Uebersicht;
+
+export { sideIconStyles as styles } from "../../lib/styles/components/side-icon";
+
+/**
+ * Component to render the side icon based on the settings.
+ *
+ * @returns {JSX.Element|null} The side icon component or null if sideDecoration is disabled.
+ */
+export function Component() {
+  // Using context to get settings
+  const { settings } = useSimpleBarContext();
+  // Destructuring sideDecoration from global settings
+  const { sideDecoration } = settings.global;
+
+  // If sideDecoration is disabled, return null
+  if (!sideDecoration) return null;
+
+  // Render the side icon component
+  return (
+    <div className="side-icon">
+      <SuspenseIcon>
+        <Icons.Apple className="side-icon__svg" />
+      </SuspenseIcon>
+    </div>
+  );
+}
-- 
cgit v1.3.1

