From d06784958d73159b5e4abafe5114804662114ed7 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Thu, 9 Jul 2026 22:15:53 -0400 Subject: move ubersicht modules in tree --- .../lib/components/icons/icon.jsx | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 users/ryan/modules/simple-bar/simple-bar-source/lib/components/icons/icon.jsx (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/components/icons/icon.jsx') diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/components/icons/icon.jsx b/users/ryan/modules/simple-bar/simple-bar-source/lib/components/icons/icon.jsx new file mode 100755 index 0000000..c46f60c --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/components/icons/icon.jsx @@ -0,0 +1,40 @@ +import * as Uebersicht from "uebersicht"; + +const { React } = Uebersicht; + +/** + * Icon component renders an SVG element. + * + * @param {Object} props - The properties object. + * @param {number} [props.width=24] - The width of the SVG. + * @param {number} [props.height=24] - The height of the SVG. + * @param {React.ReactNode} props.children - The children elements to be rendered inside the SVG. + * @returns {JSX.Element} The SVG element. + */ +export default function Icon({ width = 24, height = 24, children, ...props }) { + return ( + + {children} + + ); +} + +/** + * SuspenseIcon component renders its children within a React.Suspense component. + * + * @param {Object} props - The properties object. + * @param {React.ReactNode} props.children - The children elements to be rendered inside the Suspense component. + * @returns {JSX.Element} The Suspense component with a fallback SVG loader. + */ +export function SuspenseIcon({ children }) { + return ( + }> + {children} + + ); +} -- cgit v1.3