16 lines
338 B
JavaScript
16 lines
338 B
JavaScript
import {action, observable, makeObservable} from 'mobx';
|
|
|
|
export class storePalette {
|
|
constructor() {
|
|
makeObservable(this, {
|
|
customColors: observable,
|
|
changeCustomColors: action
|
|
});
|
|
}
|
|
|
|
customColors = [];
|
|
|
|
changeCustomColors (colors) {
|
|
this.customColors = colors;
|
|
}
|
|
} |