1 | import { IConfig } from './types/interfaces';
|
2 |
|
3 | interface Preferences {
|
4 | icons: IConfig['icons'];
|
5 | attributes: IConfig['attributes'];
|
6 | }
|
7 |
|
8 | export const preferences: Preferences = {
|
9 | icons: {},
|
10 | attributes: {
|
11 | xmlns: 'http://www.w3.org/2000/svg',
|
12 | viewBox: '0 0 24 24',
|
13 | fill: 'none',
|
14 | height: 24,
|
15 | width: 24,
|
16 | stroke: 'currentColor',
|
17 | strokeWidth: 2,
|
18 | strokeLinejoin: 'round',
|
19 | strokeLinecap: 'round',
|
20 | },
|
21 | };
|
22 |
|
23 | export function setAttributes(attributes: Preferences['attributes']) {
|
24 | preferences.attributes = attributes;
|
25 | }
|
26 |
|
27 | export function setIcons(icons: Preferences['icons']) {
|
28 | preferences.icons = icons;
|
29 | }
|