2023-02-01 01:47:10 +01:00
|
|
|
import feather from 'feather-icons'
|
2023-01-30 02:38:45 +01:00
|
|
|
|
|
|
|
export default function Icon(name, fallback) {
|
2023-02-01 01:47:10 +01:00
|
|
|
const icon =
|
|
|
|
feather.icons[name.toLowerCase()] || feather.icons[fallback.toLowerCase()]
|
|
|
|
return icon.toSvg({ width: 16, height: 16 })
|
2023-01-30 02:38:45 +01:00
|
|
|
}
|