For use you need to make a space in a className string
<Component className=' wk_bg-hotPink_300 '>
Content
</Component>You need to import your svg in 'utils/svg/imports.ts'
You need to add name of svg to literal type:
type Svg =
'burgerMenu' |
'globe' |
'handshake' |
'apple' |
'codeMentor' |
'HERE;add your svg in object:
const svg: Readonly<SvgTypes>= {
burgerMenu: <BurgerMenu />,
globe: <Globe />,
handshake: <Handshake />,
apple: <Apple />,
codeMentor: <CodeMentor />,
HERE: <HERE />
};import and use!
import { svg } from "@/app/utils";
...
export default function Component() {
return (
<button>
{svg.burgerMenu}
</button>
)
};