Create pr.js

This commit is contained in:
Appleinc123 2021-04-21 16:31:33 +05:30 committed by GitHub
parent a718a7e9c3
commit 74d17b9cf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
pr.js Normal file
View File

@ -0,0 +1,10 @@
import Icon from './icon';
import icons from '../dist/icons.json';
import tags from './tags.json';
export default Object.keys(icons)
.map(key => new Icon(key, icons[key], tags[key]))
.reduce((object, icon) => {
object[icon.name] = icon;
return object;
}, {});