From 3d2d79c908956105f155e0b41015ede06a7c108d Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 30 Jul 2024 15:57:46 -0300 Subject: [PATCH] feat: Add Athena icon component (#3085) * feat: Add Athena icon component Add a new component called AthenaComponent that renders an SVG icon for Athena. This component is imported from the newly created file "athena.jsx" in the "icons/athena" directory. Additionally, an export for the AthenaIcon component is added in the "icons/athena/index.tsx" file. --- src/frontend/src/icons/athena/athena.jsx | 144 +++++++++++++++++++++++ src/frontend/src/icons/athena/index.tsx | 10 ++ src/frontend/src/utils/styleUtils.ts | 2 + 3 files changed, 156 insertions(+) create mode 100644 src/frontend/src/icons/athena/athena.jsx create mode 100644 src/frontend/src/icons/athena/index.tsx diff --git a/src/frontend/src/icons/athena/athena.jsx b/src/frontend/src/icons/athena/athena.jsx new file mode 100644 index 000000000..d3bc71fba --- /dev/null +++ b/src/frontend/src/icons/athena/athena.jsx @@ -0,0 +1,144 @@ +import { cn } from "@/utils/utils"; +export const AthenaComponent = ({ className, ...props }) => ( + + + + + + + + + + + + + + + + + + + + + + +); diff --git a/src/frontend/src/icons/athena/index.tsx b/src/frontend/src/icons/athena/index.tsx new file mode 100644 index 000000000..20445251e --- /dev/null +++ b/src/frontend/src/icons/athena/index.tsx @@ -0,0 +1,10 @@ +import React, { forwardRef } from "react"; +//@ts-ignore +import { AthenaComponent } from "./athena"; + +export const AthenaIcon = forwardRef< + SVGSVGElement, + React.PropsWithChildren<{}> +>((props, ref) => { + return ; +}); diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts index 244e68fa6..bef662795 100644 --- a/src/frontend/src/utils/styleUtils.ts +++ b/src/frontend/src/utils/styleUtils.ts @@ -1,4 +1,5 @@ import { AIMLIcon } from "@/icons/AIML"; +import { AthenaIcon } from "@/icons/athena/index"; import { freezeAllIcon } from "@/icons/freezeAll"; import { AlertCircle, @@ -590,4 +591,5 @@ export const nodeIconsLucide: iconsType = { AIML: AIMLIcon, "AI/ML": AIMLIcon, GitLoader: GitLoaderIcon, + athenaIcon: AthenaIcon, };