From ecd75a6f6e3026c4f3bb355e6489dc4f98686538 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sun, 20 Apr 2025 09:15:35 +0200 Subject: [PATCH] Convert svg into tsx --- src/assets/svgs/NavAdd.tsx | 32 +++++++++++++++++++++++ src/assets/svgs/NavBack.tsx | 30 +++++++++++++++++++++ src/assets/svgs/NavCloseTab.tsx | 46 +++++++++++++++++++++++++++++++++ src/assets/svgs/NavMoreMenu.tsx | 30 +++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 src/assets/svgs/NavAdd.tsx create mode 100644 src/assets/svgs/NavBack.tsx create mode 100644 src/assets/svgs/NavCloseTab.tsx create mode 100644 src/assets/svgs/NavMoreMenu.tsx diff --git a/src/assets/svgs/NavAdd.tsx b/src/assets/svgs/NavAdd.tsx new file mode 100644 index 0000000..dd45bad --- /dev/null +++ b/src/assets/svgs/NavAdd.tsx @@ -0,0 +1,32 @@ +import { useTheme } from '@mui/material'; +import { SVGProps } from './interfaces'; + +export const NavAdd: React.FC = ({ color, opacity, ...children }) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; + const setOpacity = opacity ? opacity : 1; + + return ( + + + + + ); +}; diff --git a/src/assets/svgs/NavBack.tsx b/src/assets/svgs/NavBack.tsx new file mode 100644 index 0000000..d5865f9 --- /dev/null +++ b/src/assets/svgs/NavBack.tsx @@ -0,0 +1,30 @@ +import { useTheme } from '@mui/material'; +import { SVGProps } from './interfaces'; + +export const NavBack: React.FC = ({ + color, + opacity, + ...children +}) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; + const setOpacity = opacity ? opacity : 1; + + return ( + + + + ); +}; diff --git a/src/assets/svgs/NavCloseTab.tsx b/src/assets/svgs/NavCloseTab.tsx new file mode 100644 index 0000000..8b2734e --- /dev/null +++ b/src/assets/svgs/NavCloseTab.tsx @@ -0,0 +1,46 @@ +import { useTheme } from '@mui/material'; +import { SVGProps } from './interfaces'; + +export const NavCloseTab: React.FC = ({ + color, + opacity, + ...children +}) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; + const setOpacity = opacity ? opacity : 1; + + return ( + + + + + + + ); +}; diff --git a/src/assets/svgs/NavMoreMenu.tsx b/src/assets/svgs/NavMoreMenu.tsx new file mode 100644 index 0000000..ca641ba --- /dev/null +++ b/src/assets/svgs/NavMoreMenu.tsx @@ -0,0 +1,30 @@ +import { useTheme } from '@mui/material'; +import { SVGProps } from './interfaces'; + +export const NavMoreMenu: React.FC = ({ + color, + opacity, + ...children +}) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; + const setOpacity = opacity ? opacity : 1; + + return ( + + + + ); +};