Importing svg files into vs code

I cant import svg files to vs code. When I am dragging the svg files and putting them into vs code i am seeing the error message like this:

import image from “…/assets/icon.svg”;

// Just use it like a normal image