Closed zehraworks closed 1 year ago
Adding a new method increases code duplication.
You can add a new parameter for the existing method instead.
If this parameter exists, attributes that should be in SVG files are added.
export const convertToSVG = ({ icon }: IconSetItem, size = 32, isFile = false) => {...}
// ...
convertToSVG(icon, size, true)
Fix #262