import icons from "feather-icons/dist/icons.json" ; import React , { FC } from "react" ; type Props = { colour ? : string ; name : string ; size ? : number | string ; } ; const Icon = ( { colour = "currentColor" , name , size = 24 } ) => ( < i > < svg xmlns = "http://www.w3.org/2000/svg" width = { size } height = { size } viewBox = "0 0 24 24" fill = "none" stroke = { colour } strokeWidth = "2" strokeLinecap = "round" strokeLinejoin = "round" dangerouslySetInnerHTML = { { __html : icons [ name ] } } /> < /i>); export default Icon ;