7 lines
207 B
JavaScript
7 lines
207 B
JavaScript
|
import { icons } from 'feather-icons'
|
||
|
|
||
|
export default function Icon(name, fallback) {
|
||
|
const ico = icons[name.toLowerCase()] || icons[fallback.toLowerCase()]
|
||
|
return ico.toSvg({ width: 16, height: 16 })
|
||
|
}
|