nextjs svg npm

JavaScript
yarn add next-react-svg -E

Source

Also in JavaScript: