UNPKG

639 BTypeScriptView Raw
1import { IConfig } from './types/interfaces';
2
3interface Preferences {
4 icons: IConfig['icons'];
5 attributes: IConfig['attributes'];
6}
7
8export 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
23export function setAttributes(attributes: Preferences['attributes']) {
24 preferences.attributes = attributes;
25}
26
27export function setIcons(icons: Preferences['icons']) {
28 preferences.icons = icons;
29}